【解决】client does not support authentication

参考链接:

https://blog.csdn.net/WJUNSING/article/details/80483934
https://blog.csdn.net/qq_40646620/article/details/80716394

问题描述

刚安装完mysql8.0.11,连接时报错:
在navicat中报错client does not support authentication
在mysql workbench中报外部组件错误

解决步骤

使用如下命令:

mysql>  alter user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.60 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.18 sec)

成功。
【解决】client does not support authentication_第1张图片

你可能感兴趣的:(数据库)