连接mysql客户端报错: java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'

  报这个错可能是因为用了低版本的的客户端、驱动连接高版本的mysql服务器。

  解决方式有三种:升级客户端版本、修改服务端认证方式和适应服务端认证方式。

  我是通过升级客户端版本解决,参考一下链接:

  Upgrading to MySQL Connector/J 8.0

  同时收集了其他的解决问题的链接:

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

原文地址:https://www.cnblogs.com/alinainai/p/11927562.html