Importing MySQL Databases

Importing MySQL Databases

How to import a database:

    1. In phpMyAdmin, select the new database name at the top left, if it exists. Skip this step if it does not.
    2. Select "Import".
    3. Find your .sql file on your computer, select "Go".

Common Errors

  • If phpMyAdmin times out, your import file is too large. Timeout will occur after 30 seconds.
  • #1044 - Access denied. Database contains a query that attempts to create a database for a nonexistent user. The import file must be edited. If you would like us to do it, please submit a ticket.
  • #1049 - Unknown database. Your import file hasn't got a query to create a database prior to importing data. This can be fixed in cPanel - go to MySQL Database and create a database with the name the error calls for.
  • #1007 - Can't create database; database exists. Your import file is attempting to create a database that already exists. If it is an empty database, delete it using the MySQL Databases tool in cPanel. If the database isn't empty, the import file must be edited to remove the query. If you would like us to do this, please submit a ticket.
  • #1064 - You have an error in your SQL syntax. The import file doesn't contain the backup data for a database. The file may also have been corrupted or changed.
  • ERROR 1044 (4200): Access denied for user. This is a priviledges issue, please submit a ticket. As a temporary solution, you can edit the import file to remove the CREATE DATABASE query. After removing the problem query, you can use the MySQL Databases tool in cPanel to create the database that the import file was trying to create. This should allow you to import the file.

 

  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

Do you offer password protected directories?

By default, cPanel allows you to password protect directories in your account that you wish to...

Why can't I log into my cpanel or webmail?

There various issues that you may not be able to login to your cPanel or WebMail. We have...

Custom Error Pages

Creating your own error pages can be accomplished through cPanel. After logging in, under...

Requesting a New cPanel Password

Resetting Your cPanel PasswordYou can reset your cPanel password from the cPanel login screen....

Secure cPanel Login

Using Shared SSL to Access cPanel Use https, enter your site's IP address, and the secure port...