Cannot create database

fshagan

Verified User
Joined
Aug 2, 2011
Messages
38
I'm getting this error message when trying to create a new MySQL database in the Direct Admin interface:

"Unable to add user xxxxx_xxxxxx. The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement"

However, looking in /etc/my.cnf I don't see the line "skip-grant-tables" at all, so I'm uncertain why it's running that way.

Things I have tried:
Restart mysqld from within Direct Admin (several times)
Stop and start mysqld from shell / command line
Added skip-grant-tables to /etc/my.cnf restarted mysql, then removed it and restarted mysql.

Any tips on getting this to work?
 
Thanks for the recommendation! I appreciate the help.

I think I have a more serious problem than the usual with this message. Output of those commands:

[root@host1 public_html]# killall -9 mysqld_safe
mysqld_safe: no process found
[root@host1 public_html]# killall -9 mysqld
[root@host1 public_html]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service

I verified that mysqld was running in Direct Admin. Then tried to create a database again in the user account and get the same message:

Unable to add user xxxxx_xxxxx. The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
 
yeah it means your databases are wide open.
 
Thank you very much! Flush privileges did the trick and I can once again create databases.
 
Back
Top