Change the mysql password under linux

Log in as root user , command: mysql -uroot -p Enter the password; 
mysql>use mysql;
mysql>UPDATE user SET password=PASSWORD('Enter new password') WHERE user='root'; mysql
>FLUSH PRIVILEGES;
Finish.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326445821&siteId=291194637