I am a Linux user and I have updated my root password in mysql as :
update user set password=PASSWORD('xxxx') where user='root' and host='localhost';
flush privileges;
quit;
When I tried to login as :
mysql -u root -p
xxxx
An Error occurred :- Access denied for 'ROOT'@'LOCALHOST' using password yes
What could be the problem? I know how to reset the mysql root password through terminal using root user. I just wanted to know why didn't this work.