Skip to main content

lost root access to MySQL - DFU error...

Comments

5 comments

  • PCZero
    Woo Hoo I got it figured out...
    0
  • andrew.n
    What was it?:) Good job!
    0
  • PCZero
    To get into MySQL if locked out as root... 1) At shell go to /etc 2) nano my.cnf --> Under [mysqld] add the line skip-grant-tables 3) In WHM restart MySQL. 4) At shell log into mysql --> mysql -u root -p --> use mysql --> UPDATE user SET HOST = 'localhost' WHERE user = 'root' 5) In WHM restart MySQL. Now you should be abel to use phpMyAdmin in the usual manner. You might want to go back and edit the my.cnf file and delete or comment out the line added above then restart MySQL one last time.
    0
  • andrew.n
    Well done though this could also be done from WHM directly :) The root MySQL user password can be updated in the following location in WHM: "Home " SQL Services " MySQL Root Password"
    0
  • PCZero
    The issue was not the password. The issue was that the host filed for the root user got scrogged and there was no way to get into any of MySQL. The above procedures allows the you to get in, use the MySQL database and edit the host field for the root user in the user table.
    0

Please sign in to leave a comment.