Jmeter connects to the database process diagram

Jmeter connects to the database process diagram

1. Download the MySQL jdbc driver (mysql-connector-java-5.1.28.jar) and put it in the ...\apache-jmeter-3.3\lib\ directory

Driver download address: https://dev.mysql.com/downloads/connector/j/

2. Add the driver address under the test plan

3. Select Thread Group - Add - Configuration Components - JDBC Connection Configuration

4. Configure JDBC Connection Configuration

Variable Name: This name is customized and will be used in JDBC Request

Database URL: jdbc:mysql:// database IP address: database port/database name

JDBC Driver Class: com.mysql.jdbc.Driver

Username: Database connection username

Password: Database connection password

5. Add JDBC Request

The Variable Name in the JDBC Request is consistent with the Variable Name value in the JDBC Connection Configuration

Query Type: You can select the type of SQL, whether it is a query, modification or deletion operation.

6. Add a result tree to see if the data response is correct

Note: If you want to execute multiple SQL statements at one time, separate each SQL statement with a semicolon (;). However, when configuring the Database URL in the JDBC Connection Configuration, add a parameter at the end: ?allowMultiQueries=true, and select Callable statement for Quer Type, as shown in the following figure:

The result is perfect, and I feel very happy~~~~~~

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • JMeter installation and operation tutorial on Linux server
  • Web Jmeter-Detailed explanation of interface testing tools
  • How to connect to Mysql using Jmeter
  • Detailed explanation of Jmeter calling java script process
  • How to automatically generate test reports using jmeter
  • How to get all request messages in jtl file in Jmeter

<<:  Detailed code for building a multi-person video chat service based on webrtc on Ubuntu

>>:  Simple implementation of mini-vue rendering

Recommend

Nginx uses the Gzip algorithm to compress messages

What is HTTP Compression Sometimes, relatively la...

Solve the group by query problem after upgrading Mysql to 5.7

Find the problem After upgrading MySQL to MySQL 5...

How to configure the same domain name for the front and back ends of nginx

This article mainly introduces the method of conf...

How to use Greek letters in HTML pages

Greek letters are a very commonly used series of ...

How to fix the WeChat applet input jitter problem

Find the problem Let's look at the problem fi...

CSS example code for setting scroll bar style

The CSS implementation code for setting the scrol...

CentOS 6.4 MySQL 5.7.18 installation and configuration method graphic tutorial

The specific steps of installing mysql5.7.18 unde...

Analysis of Mysql data migration methods and tools

This article mainly introduces the analysis of My...

The button has a gray border that is ugly. How to remove it?

I used the dialog in closure and drew a dialog wit...

Steps to install MySQL 8.0.23 under Centos7 (beginner level)

First, let me briefly introduce what MySQL is; In...

Simple example of using Docker container

Table of contents 1. Pull the image 2. Run the im...

JavaScript implements double-ended queue

This article example shares the specific code of ...

Vue implements real-time refresh of the time display in the upper right corner

This article example shares the specific code of ...