Loading

Navicat连接Mysql报错

Navicat连接Mysql报错:Client does not support authentication protocol requested by server;

 

  上篇刚写了安装Mysql,想用Navicat去连接,然后就报错了,此处记录报错解决。

  Navicat连接MySQL Server8.0版本时出现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;

 

 

解决如下:

 

posted @ 2018-08-28 12:47  greamrod  阅读(450)  评论(0)    收藏  举报