ECLIPSE 不能连接MYSQL 8 的现象

连接mysql 出现:java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.

mysql 8 之后的密码默认方式 为caching_sha2_password

如果有ECLIPSE 不能连接MYSQL 8 的现象,可以将密码规则改为以前的:mysql_native_password

alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'L
ingrui@123';

原文地址:https://www.cnblogs.com/lrzy/p/10538153.html