使用navicat连接MySQL报client dose not support authentication protocol requested by server;

使用navicat连接mysql报错如下:

解决办法:

1.登陆mysql服务器

mysql -uuserName -Pport -p

2.执行alter命令,修改用户信息

alter user 'userName'@'localhost' identified with mysql_native_password by 'userPassword';

3.现在就可以使用navicat连接了,如果不行执行下面命令后再试

FLUSH PRIVILEGES;
发布了24 篇原创文章 · 获赞 9 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/zh2508/article/details/89708718