JMeter Operations Database (MySQL for example)

Source: Internet
Author: User

JMeter can not directly connect to the database, first install a jmeter connection to the MySQL database file Mysql-connector-java-5.1.7-bin.jar (do not install, put in a location.) )

Different database, such as Oracle, SQL Server and other different jar packages, can be found on the Internet.

First build a thread group, all set to 1 times first see if it can be used.

This jar package was found in the test plan:

First, connect to the database. Add JDBC Connection configuration, set connection information, account password and other content:

Variable name to set a random, then will use.

URL, account number, password and other content set up well.

Executes the SQL statement after it is configured. To add a JDBC request:

Show tables; First look at which tables are in the database. The results of the operation are shown in the results tree. Note the English semicolon.

SELECT * from App_student; Query App_student the contents of this table

Query type: statement types, queries with Select, additions and deletions instead of update, together with can choose callable

If you want to modify the table contents, use Update.

First look at the structure of the App_student table, as follows

The number of coins to be modified for all personnel is 999:

JMeter Operations Database (MySQL for example)

Related Article

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.