mysql 8不升级链接mysql驱动包会报链接失败

升级成 新的mysql驱动跟连接池驱动本地测试可以

<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
 <groupId>mysql</groupId>
 <artifactId>mysql-connector-java</artifactId>
 <version>8.0.15</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
<dependency>
 <groupId>com.alibaba</groupId>
 <artifactId>druid</artifactId>
 <version>1.1.16</version>
</dependency




评论

  • 04-23 17:51
    我的没有问题啊,需要在配置插件的时候里边加一个驱动的参数DruidPlugin dp = new DruidPlugin(jdbcProp.get("jdbcUrl"), jdbcProp.get("user"), jdbcProp.get("password"),"com.mysql.cj.jdbc.Driver");
  • 发送