navicat 连接mysql -- Client does not support authentication protocol requested by server

在用navicat连接 mysql_5.7.23-0ubuntu0.18.04.1 (Ubuntu)出现错误:

Client does not support authentication protocol requested by server

根据网络查找的答案:

ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘root’; 
FLUSH PRIVILEGES;

猜你喜欢

转载自blog.csdn.net/u013887008/article/details/81806606