mysql密码修改

use mysql;
mysql -uroot -p
mysql> use mysql;
【mysql密码修改】mysql> update user set password=password('root') where user='root'; (mysql版本小于5.7)
mysql> update user set authentication_string=password("root") where user='root'; (mysql版本大于5.7)
mysql> flush privileges;

    推荐阅读