安裝調試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;

 

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