Hi all,
Working on a project Today I found I needed the password of user admin mysql database in windows, as well to perform the reset of the database execute the following command :
mysqld.exe -u admin --skip-grant-tables
Then:
mysql.exe
select user from mysql.user;
update mysql.user set password = password('new password') where user = 'admin';
flush privileges;
\q
And this is all
C:\Parallels\Plesk\Databases\MySQL51\bin>mysql -u admin -p
Enter password: *********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.73-community MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
+--------------------+
2 rows in set (0.02 sec)