Frequently Asked Questions

Help Center Search

How do I import data into a MySQL database?

Print this Article
Comment on this Article
Last Updated: September 2, 2008 3:46 PM

To Import a .SQL File Into a MySQL Database:

  1. Log in to your Account Manager.
  2. Under the My Products section, select Hosting.
  3. Click Manage Account.
  4. Under the Databases heading, click MySQL.
  5. Click the Open Manager button.
  6. Enter your user name and password for your database.
  7. Click the database into which you are importing data.
  8. On the far upper-left corner of the page, click the SQL button. This will be immediately to the right of the green Exit button.
  9. Click the Import files tab in the new window that appears.
  10. Click Browse, and then locate the .SQL file on your machine.
  11. Click Go.

This will run the SQL file and update the database as specified in that file.

NOTE: The phpMyAdmin interface is limited to importing 2MB of data at one time. If you need to import more than 2MB, we recommend breaking up the file into 2MB pieces.

NOTE: It is unnecessary to include a CREATE DATABASE line in your MySQL database, and if present can even cause your import to fail. If your database includes this line, remove it before uploading the database to your hosting account.