вівторок, 15 вересня 2009 р.

Resetting forgotten root password

if you forgot the root password - here is the recipe to reset it:

1) kill mysqld
2) run

mysqld_safe –skip-grant-tables &

mysql -u root mysql

mysql> UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES;

3) kill the started MySQL server
4) restart it

1 коментар:

  1. This post describes how to reset forgotten root password. I forgot password very often so this method is very useful. I can easily retrieve root password now. The query is simple and I got that in first time itself. Keep it up.
    oracle ebs r12

    ВідповістиВидалити