Importing MySQL into cPanel (& Common Mistakes)
PrintIf it doesn't cPanel may give an error, or say its been restored when it actually hasn't (if using the Backups page to restore).
Note: SQL dumps over 50MB will need to be restored by us. Please upload your SQL dump via FTP and submit a ticket letting us know where the file is and that you'd like us to restore it for you. You should create the database within cPanel and confirm the name of the database we should restore it to.
If your database / cPanel user name is the same as when the SQL dump was made:
You should login to cPanel go to 'MySQL Databases' and create the database (and add a user to the database) and then go to 'Backups' on cPanel where you can restore your SQL dump.
Note: Your cPanel username should be the same as well, because your database name contains your username i.e. cpaneluser_databasename.
If your database name / cPanel user name isn't the same as when the SQL dump was made:
You should login to cPanel go to 'MySQL Databases' and create the database (and add a user to the database).
You then need to go back to the cPanel main page and then select PhpMyAdmin.
Once in PhpMyAdmin, select the correct database name from the left, and then click the Import icon and select the file containing your SQL dump.
The dump will now be restored to which ever database you selected.
Was this answer helpful?
Related Articles
Official cPanel ManualClick here to view the Offiicial cPanel Manual, every question you have related to cPanel should be answered in this...
Official WHM ManualClick here to view the Offiicial WHM Manual, every question you have related to WHM should be answered in this manual.
Common Paths - PHP, SendMail, Perl, ImageMagick, Python, Curl etcHere are some commonly needed paths for scripts:
PHP: /usr/bin/phpPHP CLI: /usr/bin/php-cli Perl: /usr/bin/perl Git:...
Cant access your website/email/ftp? Server Status page says everything is online?It's likely that you've been blocked by our firewall. The server may appear as down because the firewall blocks all...
PHP Time Zone ErrorsIf you are seeing time or time zone error messages on your website, this can be solved by using a php.ini file....