Mysql connections and queries

1, the mysql-connector-java-5.1.7-bin.jar Jmeter file into the bin folder of the installation directory

2, load the driver in the top-level directory <Test Plan> in

3、添加JDBC Connection Configuration

4, the configuration database information

1) Variable the Name can not be empty

2) DataBase URL format: jdbc: mysql: // server ip: port number / database

    ? In addition parameter database allowMultiQueries = true, can simultaneously execute multiple mysql statement; otherwise an error

3)JDBC Driver Class:com.mysql.jdbc.Driver

4) Enter the user name and password for the database

5, add the JDBC Request

6, add the variables and query

    Variable names must be consistent and variable names in the JDBC Connection Configuration

 

7, execute a query

Guess you like

Origin www.cnblogs.com/QaStudy/p/11518052.html