Mysql修改默认root密码

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;

发表回复

您的电子邮箱地址不会被公开。