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 first published in August 2004

Dig Deeper on Open source databases

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.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: