Hi~ Darling!

Mysql5.7/8安装

1
2
3
4
5
6
use mysql;
update user set authentication_string=password("你的密码") where user='root'; #(无password字段的版本,也就是版本<=5.7的)
update user set password=password('你的密码') where user='root'; #(有password字段的版本,版本>5.7的)
update user set plugin="mysql_native_password";
flush privileges;
exit;

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×