So many passwords to remember that i sometimes tend to forgot my mysql database password. this simple steps will guide you on how you can recover your mysql root password.

Stop MySQl server:

  • /etc/init.d/mysql stop

Then type the following in the terminal

  • mysqld_safe –skip-grant-tables &
  • mysql -u root mysql

You will be prompted with the standard mysql environment. and type this command to reset your mysql root password.

  • update user set password=password(’123456′) where user=’root’;
  • flush privileges;

Now your all set with your new mysql root password…

Like this blog? Why not buy me a cup of coffee?

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

Related Post