进入mysql后
flush privileges;
- 修改密码。这里’root’@’%'是 用户名@host。如果是mysql.user中root是127.0.0.1,host可以写localhost。
alter user 'root'@'%' identified with mysql_native_password by 'root';
版权声明:本文为qq_43589143原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
进入mysql后
flush privileges;
alter user 'root'@'%' identified with mysql_native_password by 'root';