当前位置:网站首页>Method of JMeter connecting to database
Method of JMeter connecting to database
2022-07-19 02:30:00 【[email protected]】
First, go to the database to check your database version , Command select version ();
Get into Mysql Official website (https://www.mysql.com/) Download the corresponding jar package
Select the version corresponding to your database :
Unzip the downloaded file , Then decompress the jar The bag is on your jmeter/lib Under the table of contents .
Restart jmeter, Right click the new thread group –> add to –> The configuration element –>JDBC Connection Configuration
JDBC Connection Configuration The properties are configured as follows :
Variable Name: Custom user name .
Datebase URL: Fill in the database URL,jdbc:mysql: Your database address : Your database port number
Username: Your database name
Password: Your database connection password
JDBC Postprocessor ( After SQL):
JDBC Preprocessor ( In front of SQL): Basically the same as the post
variables names Set to A,,C, Then the following variables will be set to :
A_#=2 ( Total number of lines )
A_1= The first 1 Column , The first 1 That's ok
A_2= The first 1 Column , The first 2 That's ok
C_#=2 ( Total number of lines )
C_1= The first 3 Column , The first 1 That's ok
C_2= The first 3 Column , The first 2 That's ok
If the returned result is 0, that A_# and C_# Will be set to 0, Other variables don't set values .
If you return for the first time 6 Row data , The second time only returns 3 Row data , So the first time there were so many 3 Row data variables are cleared .
have access to ${A_#}、${A_1}... To get the corresponding value .
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/200/202207170009049007.html
边栏推荐
- SSTI模板注入
- Logic vulnerability - login verification code security
- Project Performance Optimization Practice: solve the white screen problem of the home page, customize the loading animation to optimize the first screen effect
- 已知先序遍历中序遍历,求树的层序遍历
- BUAAOS-Lab0实验报告
- innodb、Mysql结构、三种删除的区别
- Unity笔记1
- 【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti
- After unity imports the FBX model, the rotation and position of the object will change automatically at runtime
- 【Unity编辑器扩展】Unity发布资源到商店流程Unity Asset Store Publish
猜你喜欢
随机推荐
find()(名字太多人用我就加字)
[unity panel attribute literacy] set texture import settings after importing textures
服务器知识(详情)
[unity Editor Extension] quickly locate the specified files and paths of resources and scripts
postman的json脚本转jmeter的jmx脚本
使用JMeter测试基于WebSocket协议的服务
UE4 笔记
【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti
status 500 reading AftersaleService#getAftersaleList(Long)+com.sun.proxy.$Proxy214.getAftersaleList
[unity Editor Extension] the pre-processing and post-processing pictures of unity assets are automatically transferred to sprite2d
Summary of tree and heap knowledge points
Signal and system experiment
[antv G2] how to add a click event to the line chart (click anywhere to get the value of the point on the line)
【工具篇】Unity快速上手制作2D和2.5D游戏的神器TileMap
[unity Editor Extension] scriptableobject for internal asset configuration of unity
【Antv G2】折线图如何添加点击事件(点击任意位置即可获取折线上点的值)
UE4 notes
Injection de modèles ssti
After unity imports the FBX model, the rotation and position of the object will change automatically at runtime
[tools] unity screen drawing line, unity screen drawing Hsj drawing tool