JMeter connecting MySQL Database

Source: Internet
Author: User

1. Add the jar bundle that connects MySQL to the test plan

Mysql-connector-java-5.1.7-bin.jar

2, Thread group Add configuration component-jdbc Connection config

Input variable name for created pool input Wang

Set in database connection Configuraction

A, Databaseurl:jdbc:mysql://ip:3306/dangdang?allowmultiqueries=true&characterencoding=utf8

B,JDBC Driver Class:com.mysql.jdbc.driver

C, username password: Enter the user name and password for the database

3. Add sample---------JDBC request under Thread Group

In variable name to bound to pool: Enter the 2nd step set by Wang

4, enter the SQL statement in SQL Queery

For example: Delete database data, type to select Update

Select selection Type

Mixed types can be selected callable statement

Comment out an SQL statement preceded by--such as--a space between the Select and the statement

Type is wrong to perform unsuccessful ....

5, to see the results, you can add another view of the result tree.

JMeter connecting MySQL Database

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.