Problem solve Get help with specific problems with your technologies, process and projects.

Getting error 1006: Can't create database

I have root privileges but keep getting a "Can't create database" error (1006). I can use other existing databases though. I even checked the tables of my user to make sure I had all privileges. I started getting this error after dropping one of the databases. I tried doing "chown -R mysql ." in /var/lib/mysql but that didn't help.

The only two restrictions to creating are database are MySQL permissions and operating system restrictions. You should verify that your root privileges do indeed include permission to create a database (check for permission in the User table of the mysql database), and if you do, try creating a directory in your data folder while logged in as the mysql user.

For More Information

Dig Deeper on Linux servers