Navicat連接Mysql 8.0.16報錯:Client does not support authentication protocol requested by server;

        安裝Mysql8.0.16後,用Navicat去連接 localhost,然後報錯:Client does not support authentication protocol requested  by server;解決方法的命令如下:

  1. use mysql;
  2. alter user 'root'@'localhost' identified with mysql_native_password by '********';
  3. flush privileges;

      

 

另:

啓動mysql服務:net start mysql
停止mysql服務:net stop mysql

修改密碼:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密碼'。

 

 

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