GoDaddy Support

Importing SQL Files into MySQL Databases Using phpMyAdmin

Date Submitted: 5/5/14

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

  1. Access phpMyAdmin for the database you want to use (more info).
  2. Click Query window (Query window).
  3. (cPanel only) On the left, click the database you want to use.
  4. Go to the Import files tab.
  5. Click Choose File, locate the SQL file 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.

Rate This Article:
Related Topics:
NEED HELP? Call our award-winning support team 24/7 at (480) 505-8877

About GoDaddy


United States - English
Traffic Log Image