How to import and export database via phpMyAdmin (“Access denied create database db_name” error)

0

In cPanel you can import and export databases using the menu phpMyAdmin, which you can find in the section Databases.

Please note, only databases of 50MB maximum, can be imported/ exported in PHPMyAdmin. Larger databases have to be imported/exported via SSH. To do this follow the instructions here or simply submit a ticket to our HelpDesk.

To import a database:

• Log in your cPanel.
• Navigate to PHPMyAdmin in the section ‘Databases’

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(1)

 

• Select the database that you will need import to.

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(2)

• On the upper bar, click the tab ‘Import’.

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(5)

• Click ‘Browse’ and locate the .sql file from your computer.

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(6)

• Click ‘Go’ so that it is imported into the database.

 

• And you will see a notification that your database was successfully imported.

To export a database:

• Log into cPanel.

• Navigate to PHPMyAdmin in the section ‘Databases’

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(1)

• Select the database that you need to export

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(2)

• Choose the tables that you need to export, or click ‘Check All’

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(7)

• On the upper bar, click the tab ‘Export’

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(8)

• Select the required file from the drop-down menu in ‘Format’ and click ‘Go’ button.

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(9)
“Access denied create database db_name” error. How to fix it?

If you received this error message, you can resolve the issue by following the next steps:

• Open the dump of your database using any text editor on your computer ( for instance, Notepad or WordPad);
• Find the line :
CREATE DATABASE db_name ( it can usually be found at the beginning )
(*db_name – your database name ).
And delete it.

how_to_import_and_export_database_in_cpanel_access_denied_create_database_db_name_error_and_how_to_fix it(10)

• Save it and import it using the instructions provided above.

About Author

Leave a Reply

Your email address will not be published. Required fields are marked *