关于启动项目报java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required错的问题

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
2018-12-04 11:47:39,865 [http-nio-8081-exec-2] ERROR [com.alibaba.druid.pool.DruidDataSource] - init datasource error, url: jdbc:mysql://127.0.0.1:3306/authority-control?characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=UTC
 java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required

如果出现这种问题我亲测的方法是把mysql驱动版本降低 我用的是6.06会报这种错误,降低后用5.1.37后就不报错了

你可能感兴趣的:(个人总结)