[MySQL] Reset root password

hklcf

Verified User
Joined
Dec 17, 2004
Messages
70
Location
Hong Kong
Hey, i forget the root password of mysql, how can i reset the password?

When i use # /usr/bin/mysqladmin -u root password 'new-password' to reset the password, it show an error..

/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
 
Back
Top