How to reset MySQL password.
I am browsing blog and i just found this thing that i didn’t know
Reseting mysql password
-
-
- Stop the server
- #/etc/init.d/mysql stop
- Login as root
- #mysqld_safe –skip-grant-tables –user=root
- #mysql -u root
- Enter this command
- mysql>update mysql.user set password=password(’newpassword’) where user=’root’;
- start the service again
- #etc/init.d/mysql start
- login again
- #mysql -u root -p
- Stop the server
-
The sequence is the same in windows. But the thinks is for the complete stuff go to mysql.com aand read the documentation.