I\'m trying to update the password for a database user using the command line, and it\'s not working for me. This is the code I\'m using:
mysql> UPDATE user S
Note: u should login as root user
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your password');