Jmeter JDBC Request-mysql

Source: Internet
Author: User

To test MySQL data with JMeter, you can use a JDBC request, if the test is a newly created component, and if there are multiple requests, you can create multiple JDBC Connection cobfiguration and corresponding JDBC requests:

A new thread group, as shown, can also create a new group, thread groups are easy to debug with:

Second, the new JDBC Connection cobfiguration:

On this page, you need to configure the following data:

Variable Name Bound to Pool: This value should be unique throughout the test plan so that the JDBC sampler distinguishes between different connection configurations;

Database ULR-Connection address: JDBC:MYSQL://10.10.21.188:3306/HLF

JDBC Driver Class-database driver: Com.mysql.jdbc.Driver

Username-User logging in to the database

Password-Password for login database

Here to download a jar package (Http://pan.baidu.com/s/1i48TKbV), Mysql-connector-java-5.1.26-bin.jar, I put this jar package into the Lib/ext directory, can also be placed in the Lib directory

Third, create a new JDBC request, Varibale Name Bound to pool and JDBC Connection cobfiguration, enter the SQL statement to execute as shown in:

Iv. Add the listener, I often use is as follows:

The result of the execution is as shown in the request success:

Jmeter JDBC Request-mysql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.