jmeter连接数据库常见问题及解决办法

  1. 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.

解决办法:jmeter.properties文件中的将Class.forName("com.mysql.jdbc.Driver");
改为Class.forName("com.mysql.cj.jdbc.Driver");

  2.The driver is automatically registered via the SPI and manual loading of the driver class

解决办法:jdbc connection configuration中的database URL添加useSSL=false


版权声明:本文为Boyce_cod原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。