Mysql – Not Able to access user privileges for root in thesql

MySQLpermissions

I accidentally deleted all privileges for root and users. I would like to know how to restore them. I don't have access to USER privileges for any other user.

Best Answer

Restart mysqld_safe with this option added --skip-grant-tables

That will work only from localhost, and gives you a clean slate for creating a new root password.

Related Question