Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

JMeter operates the database

Shulou Source: shulou.com Published: 2022-06-03 05:24:04 11月24日 Update

Download the driver package corresponding to the database, mysql-connector-java-5.1.7-bin.jar, put it in the lib directory of jmeter, restart jmeter

JDBC Connection Configuration

Variable Name for created pool: The variable name of the connection pool must be consistent with the variable name of the connection pool in the JDBC Request.

Database URL format: jdbc:mysql://ip:port/dbname, a request can only execute one sql statement

The format is: jdbc:mysql://ip:port/dbname? allowMultiQueries=true, executes multiple SQL statements at once

JDBC Driver class Select the driver corresponding to the database. username and password are the username and password for logging in to the database respectively.

3. Add JDBC Requester

4. Query multiple sql statements, jdbc:mysql://ip:port/dbname? allowMultiQueries=true and select Callable Statement

5. UPDATE statement

Multiple statements, using Callrable

6. Insert, delete statements use the same Query Type as update statements

7. parameterized sql statement

Tags: Statement data database multiple variable format selection driver consistency parameter password user user name directory query login configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL Xiaomi Redmi Huawei