Ask the Expert

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.

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: