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

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

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

mysql>alter user 'root'@'localhost' identified with mysql_native_password by 'password';
mysql>flush privileges;

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章