mysql8 修改密码和navicat连接问题

mysql8 忘记密码后,实现无密码登录:

(cmd窗口1:先停止mysql服务,再执行此命令) mysqld --console --skip-grant-tables --shared-memory;

(另开cmd窗口2:)

mysql

use mysql;

update mysql.user set authentication_string=('') where user='root' and Host ='localhost';

flush privileges;

 alter user 'root'@'localhost' IDENTIFIED BY '123456';

 

远程访问及navicat连接问题:

https://blog.csdn.net/mxskymx/article/details/88765072

posted @ 2022-04-02 09:31  迷路小孩  阅读(87)  评论(0)    收藏  举报