Issue changing mysql password on Debian

Posted by Sean on Super User See other posts from Super User or by Sean
Published on 2012-03-31T20:37:28Z Indexed on 2012/03/31 23:36 UTC
Read the original article Hit count: 231

Filed under:
|
|

I installed mysql on my Debian server. I couldn't get into the database because it kept saying I put in the wrong password so I looked on the internet and found that I could log onto mysql using the command sudo mysql --defaults-file=/etc/mysql/debian.cnf From there I went typed use mysql;then mysql> UPDATE user SET password=PASSWORD('password') WHERE user='root';
Which I know switched the password because I typed the command select Host, User, Password from user; And it showed the encrypted characters had changed for all three of the root user categories. But I am still not able to login to mysql using mysql -u root -p

© Super User or respective owner

Related posts about linux

Related posts about debian