Reset mysql root passwd
Or, how to save your keister.
Open a shell session to the database server with root or a user with permissions to control the mysql process.
Stop the mysql process.
Start it again under
$ mysqld --skip-grant-tables &
Now log into mysql. Run the reset password for root
mysql> UPDATE mysql.user SET Password=PASSWORD('supersecret') WHERE User='root';
mysql> FLUSH PRIVILEGES;
Kill the previously started mysql server instance.
Start the service up as usual.
Written by Andrew Sledge
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#