Click here to Skip to main content
15,921,884 members
Please Sign up or sign in to vote.
4.38/5 (3 votes)
See more:
Mysql Client server is not opening.I have tried in cmd prompt it is displaying like "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)".For this i have tried the following procedure for reset the password.

C:\> "C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe"
--defaults-file="C:\\Program Files\\MySQL\\MySQL Server 5.0\\my.ini"
--init-file=C:\\mysql-init.txt


mysql-init.txt
---------------
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
FLUSH PRIVILEGES;
but it is not reset the password for root,how to resolve this problem.



Thank you.
Posted
Comments
Mohibur Rashid 28-Jul-13 23:50pm    
did you create all the required file as suggested?
Mohibur Rashid 28-Jul-13 23:52pm    
You are trying using password no? why you should try to open your client with password.
try the command.
#mysql -h localhost -u root -p

and then enter MyNewPass, when it request for password.

1 solution

This link will help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900