mysql> update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
mysql> alter user 'root'@'localhost' identified by '123';
mysql> set password for 'root'@'localhost'=password('123');
mysql> flush privileges;
标签:set,修改,mysql5.7,密码,user,mysql,password,root,localhost
From: https://www.cnblogs.com/komore/p/17184902.html