When you running below Jmeter test plan then "Cannot load JDBC driver class 'com.mysql.jdbc.Driver' response message given. Can any one have any solution for this?

Response code: null 0 Response message: java.sql.SQLException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

enter image description here

enter image description here

  • Is the JDBC driver class in your path? I'm assuming the class is on your computer. – Kate Paulk Feb 20 '17 at 12:35
  • After adding MySQL Connector/J in to the Jmeter lib folder as @Dmitri T mentioned below now its working fine. Thanks all for your response. – lak Feb 21 '17 at 4:18

Most probably you forgot to add MySQL JDBC driver to JMeter (JMeter doesn't include it by default)

  1. Download MySQL Connector/J
  2. Extract mysql-connector-java-x.x.xx-bin.jar and drop it somewhere to JMeter Classpath (for example to "lib" folder of your JMeter installation
  3. Restart JMeter to pick the jar up
  4. You should be good to go

See The Real Secret to Building a Database Test Plan With JMeter for more detailed explanation and instructions

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.