Navicat 10.0連接mysql 8.0報錯

1.報錯信息:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
2.解決方法:
#查看root用戶的host
mysql> select user,host from user where user=‘root’;
±-----±-----+
| user | host |
±-----±-----+
| root | % |
±-----±-----+
1 row in set (0.00 sec)
————
mysql> alter USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘Admin@123’;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
3.原因:
Navicat10只支持native加密方式

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