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

This was last published in August 2004

Dig Deeper on Linux servers

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.