----------------------------------------------------mysql------------------------------------------------------------
1. Download jdbc, decompress jdbc, and copy the file mysql-connector-java-version-ga-bin.jar to jmeter/lib;
2. Open jmeter and set the jdbc request;
1) database url: jdbc:mysql://localhost:3306/DatebaseName . Among them localhost:3306, this is the server address you test, DatebaseName, this is the database name you test. This url is the connection of jdbc
2) Driver Class: org.gjt.mm.mysql.Driver or com.mysql.jdbc.Driver If you cannot connect to the database, you can try another one
3) username: the login name of this database
4) password: This is the login password of the database
5) Write sql statements in sql Query String for testing
----------------------------------------------------Oracle----------------------------------------------------------
1. Download jdbc, copy oracle's jdbc driver jar package file (ojdbc14.jar) to JMeter's lib directory;
2. Open jmeter and set the jdbc request;
1) database url: jdbc:oracle:thin:@192.168.0.236:1521:orcl
Format : jdbc:oracle:thin:@[IP address]:[port number]:[instance name]
2) jdbc driver class:oracle.jdbc.driver.OracleDriver
3) username: your database username
4) password: your database password
5) Write sql statements in sql Query String for testing
Notes:
1) The configuration test method of other databases (such as mysql/oracle, etc.) is also the same
2) ojdbc version difference < Difference between ojdbc14.jar, ojdbc5.jar and ojdbc6.jar >
https://blog.csdn.net/cooljun618/article/details/6929553