安装调试MySql经常遇到的问题

2022-09-23 18:47:29 浏览数 (2)

1、mysql server安装完毕,远程登录不上  1130错误

代码语言:javascript复制
mysql -u用户名 -p密码
mysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>flush privileges;

2、navicat 登录  caching_sha2_password can not be loaded

代码语言:javascript复制
mysql>alter user 'root'@'localhost' identified with mysql_native_password by 'password';
mysql>flush privileges;

0 人点赞