Ubuntu – MySql Error(UBUNTU):The MySQL server is running with the –skip-grant-tables option so it cannot execute this statement

lampMySQLUbuntu

Hi when i enter:GRANT ALL PRIVILEGES ON . TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
I get:The MySQL server is running with the –skip-grant-tables option so it cannot execute this statement.
What should i do to off skip-grant-tables option?
Thanks.

Best Answer

Check mysql configs in /etc/mysql/ or the runscript in /etc/init.d/ .


Edit:
Try this: GRANT ALL, GRANT OPTION ON . TO user@localhost;

http://dev.mysql.com/doc/refman/5.1/en/grant.html

Related Question