jdbc连接MySql8.0 报Client does not support authentication protocol requested by server

前言

使用jdbc连接mysql的时候报Client does not support authentication protocol requested by server

解决

使用MySQL命令行, 键入如下命令:

1
2
3
4
5
use mysql;

alter user 'root'@'localhost' identified with mysql_native_password by '********';

flush privileges;

就可以了。


jdbc连接MySql8.0 报Client does not support authentication protocol requested by server
http://icecreamzhao.github.io/back_skill_experience/java/pit/jdbc-mysql-conn.html
作者
littleboyDK
发布于
2019年7月2日
许可协议