[sshuser01@iZ28o9yl53zZ ~]$ mysql -u root -p
Enter password:
mysql>use mysql;
mysql> update user set password=password("新密码") where user='root'; 【密码注意大小写】mysql> flush privileges;
mysql> exit;
[sshuser01@iZ28o9yl53zZ ~]$ mysql -u root -p
Enter password:
mysql>use mysql;
mysql> update user set password=password("新密码") where user='root'; 【密码注意大小写】