MySQL – reset the root password

If you have forgotten the root password or another user database is a very simple way to reset it. All commands made from the root of the operating system.

For starters turn off the MySQL server:

Run in the background database server command:

We log on as root to the mysql database without a password:

Then, in a mysql console:

We resume the process from the background fg command, and when prompted:

we use the CTRL + C, should appear:

Run in normal mode, the MySQL server:

Finally, you can check the password reset:

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.