1

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

closed as unclear what you're asking by IAmMilinPatel, Bharat Mane, NarendraC, ECiurleo, Shailendra Rathore Feb 21 '17 at 3:34

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

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

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

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