Wednesday, 25 July 2018

Mysql: How to reset MySQL root Password in Ubuntu

ello Friends,
Recently, I got a request for resetting the MySQL root password.
One of my colleges tried many solutions from different blog and website, but he failed and the question came to me.
As I am always ready for new research and problem solving, so I started my work to reset the MySQL root password.
On the internet, you can find many similar solutions and I have also tired from these solutions, but I was failed to reset root/admin password.
After some exercise, I got success on this.
Below are the final steps:
Step 1:
Stop MySQL Service.
Step 2:
Kill all running mysqld.
Step 3:
Starting mysqld in Safe mode.
Step 4:
Start mysql client
Step 5:
After successful login, please execute this command to change any password.
Here you can visit more about MySQL Flush Command:
Step 6:
You can update mysql root password .
Step 7:
Please execute this command.

0 comments:

Post a Comment