What a pain, but easily remedied using the command line!
- stop mysqld
service mysqld stop - create a text file for example mysqld.reset.password containing the following 2 lines
update mysql.user set password=password('yournewpassword') where user='root';
flush privileges; - load mysqld using the text file as input
mysqld_safe --init-file ~/mysqld.reset.password - delete your text file, for cleanliness & security reasons
rm ~/mysqld.reset.password - start mysqld
service mysqld start
No comments:
Post a Comment