Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

Make "MySQL Root Password" auto-repair the root grant

cPDavidNielson shared this idea 11 years ago
Open Discussion

Sometimes, root can't access MySQL because /root/.my.cnf contains a wrong password, or no password. But sometimes it's because the root grant is missing or broken:

- user 'root' might not exist

- grant might be for 'root'@'*' instead of 'root'@'%'

- "super" or "grant" privileges might be missing


It wouldn't be hard, in an automated way, to make sure that the necessary root grants are in place and configured correctly, and it would be extremely helpful to system administrators and support personnel.


More info below. This is not a complete list of grants that have to exist, but it's enough to get started.


http://stackoverflow.com/questions/1709078/how-can-i-restore-the-mysql-root-users-full-privileges

http://stackoverflow.com/questions/1708826/how-to-get-all-privileges-back-to-the-root-user-in-mysql

Leave a Comment
 
Attach a file