This is not something new. Nor is it something super difficult. If you get super lost with mysql passwords , consider this a reminder on how to get your root password back (the mysql root password).
- Stop the mysqld daemon process.(/etc/init.d/mysql stop)
- Start the mysqld daemon process with the –skip-grant-tables option (/usr/sbin/mysqld –skip-grant-tables &)
- Start the mysql client with the -u root option.(mysql -u root -p)
- Execute the UPDATE mysql.user SET Password=PASSWORD(’newpasshere’) WHERE User=’root’;
- Execute the FLUSH PRIVILEGES; command.
- Quit mysql (killall -9 mysqld)
- Start mysql normally (/etc/init.d/mysql start)
- Claps claps. Enjoy your new root password.
0 Responses to “Mysql password reset”
Leave a Reply