1)、use mysql; #连接到mysql数据库
2)、update mysql.user set authentication_string=password('123456') where user='root' and Host ='localhost'; #修改密码123456是密码
3)、update user set plugin="mysql_native_password";
4)、flush privileges;
5)、quit;
