解决MySQL第一次连接失败

版权声明:非商业性使用,禁止演绎,转载请保留原文链接及作者 https://blog.csdn.net/qq_39478237/article/details/84102276

上一篇讲了MySQL数据库的安装,安装之后我们用Navicat工具连接时可能会出现以下这种情况,就这种情况给出了解决办法

问题

Navicat for MySQL 连接数据库时报错 client dose not support authentication protocol requested by server;consider

解决办法

命令如下

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

猜你喜欢

转载自blog.csdn.net/qq_39478237/article/details/84102276