I get an error ‘ACCESS DENIED CREATE DATABASE db_name’ when I try to import a database
Author: admin admin Reference Number: AA-00352 Views: 8211 Created: 2013-04-11 13:20 Last Updated: 2013-04-11 13:20 0 Rating/ Voters

In order to solve this issue follow these steps:

    Open the MySQL dump with a text editor on your local PC / MAC;
    Delete the line saying "CREATE DATABASE yourdbname". Usually this line is found at the very beginning of the file;
    Save the file and try to import it again.

This problem is caused by the fact that your MySQL user does not have privileges to create new databases. Databases can be created only through cPanel’s MySQL manager.

Quick Jump Menu