I have logged in to MySQL with the --skip-grant-tables option. But I don't know how to get all privileges back to the root user.
Error
SQL query:
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost';
MySQL said: Documentation
1290 - The MySQL server is running with the --skip-grant-tables option so
it cannot execute this statement
Error
SQL query: Edit
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
MySQL said: Documentation
1290 - The MySQL server is running with the --skip-grant-tables option so
it cannot execute this statement