1、登录
mysql -uxxx -pxxx ;
use mysql;
update user set authentication_string=PASSWORD('new_password') where user='root';
flush privileges;
1、登录
mysql -uxxx -pxxx ;
use mysql;
update user set authentication_string=PASSWORD('new_password') where user='root';
flush privileges;