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.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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
- Dozens more answers to tough MySQL questions from Mike Hillyer are available here.
- The Best MySQL Web Links: tips, tutorials, scripts, and more.
- Ask the Experts yourself: Our SQL, database design, SQL Server, DB2, Sybase, MySQL, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
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.