Importing SQL Files into MySQL Databases Using phpMyAdmin
Print this Article
Comment on this Article
Last Updated:
January 24, 2012 11:03 AM
If you backed up or exported a database to a SQL file, you can import it into one of your hosting account's MySQL databases through phpMyAdmin.
To Import SQL Files into MySQL Databases Using phpMyAdmin
- Log in to your Account Manager.
- Click Hosting.
- Next to the account you want to use, click Launch.
- From the Databases menu, select MySQL.
- In the Database Name column for the database you want to use, click Manage via phpMyAdmin.
- Enter your database's Username (Database Name) and Password, and then click Go.
- Click
(Query window). - Go to the Import files tab.
- Click Choose File, locate the
SQLfile on your computer, click Open, and then click Go.
This runs the SQL file and updates the database as specified in your SQL file.
NOTE: The phpMyAdmin interface only lets you import 8MB of data at one time. If you need to import more than 8MB, we recommend breaking up the file into 8MB pieces.
NOTE: You do not need to include the CREATE DATABASE line in your MySQL database. If you do include it, your import might fail. We recommend removing the line before importing your database.