When I import my database to my host (phpMyAdmin) I get this error message
CREATE DATABASE IF NOT EXISTS `database name`
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Any ideas?
Looks like the user cpses_coIKrnWBYz'@'localhost doesn't have access to the database connorma_database this may happen because you make the database from the root account and then you try to import the database with the logging of the user cpses_coIKrnWBYz'@'localhost to solve this use following steps
phpmyadimn as the root userconnorma_databaseprivileges tab cpses_coIKrnWBYz'@'localhost with necessary privileges I was getting the same error while exporting & importing my database. This is how i solved my error.
- Selected custom method while exporting database
- In File name template option, I gave the same name as my database name(where i wanted to import)
- Checked this checkbox - Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT / TRIGGER statement
- Go
That's it. This error was coming because I was exporting the database by the old database name and importing to new database where the database name might not have the same name.
connorma_database-- CREATE DATABASE IF NOT EXISTSconnorma_databaseDEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; MySQL said: Documentation #1044 - Access denied for user 'cpses_coIKrnWBYz'@'localhost' to database 'connorma_database'