Akshata H
Akshata H

Reputation: 1

Cannot load JDBC driver class 'com.mysql.jdbc.Driver

I have updated Jmeter 5.4.3 and added MySQL connect java-8.0.27 to bin folder also and given JDBC Driver class as-com.mysql.jdbc.Driver with all details. but when I run getting "Cannot load JDBC driver class 'com.mysql.jdbc.Driver'" enter image description here

Upvotes: 0

Views: 2277

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

  1. You need to put the MySQL Connector/J to "lib" folder of your JMeter installation, not "bin" or to any other location which is in JMeter Classpath. Also JMeter restart will be required to pick up the .jar
  2. I believe correct class is com.mysql.cj.jdbc.Driver
  3. Your image is incomplete so I cannot comment on other "all details".

More information: MySQL Database and JMeter - How to Test Your Connection

Upvotes: 0

Related Questions