Reset your MySQL root password

Forgetting passwords isn't generally a good idea. It does happen, though, and if it happens to your MySQL server, this is the process you need to follow in order to recover it.

First of all, you need to stop the running MySQL server. You need to be root on your system, then:

# /etc/init.d/mysql stop

Now, we need to make a text file called an init file ...

Click through to read more...

Sign In