不为别的,只为做一个连自己都羡慕的人

mysql8.0修改密码

把密码设置为空:UPDATE mysql.user SET authentication_string='' WHERE user='root' and host='localhost';

查看USER表:select host,user,plugin,authentication_string from mysql.user;

以caching_sha2_password加密方式设置密码修改密码:ALTER user 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'root';

刷新:flush privileges;

如果出现如下问题,可参照下面得链接去解决。

 

 https://www.cnblogs.com/TM0831/p/11079415.html

posted @ 2022-06-28 14:18  升级打怪  阅读(80)  评论(0编辑  收藏  举报