jmeter操作資料庫

來源:互聯網
上載者:User

標籤:.sql   ali   alt   ati   net   1.7   串連mysql   cto   bubuko   

Jmeter操作MySQL

1、匯入jdbc的jar包

    Jmeter本身不能直接連接mysql,所以要匯入第三方jar包(mysql-connector-java-5.1.7-bin)來串連mysql

2、配置mysql串連-----添加JDBC Connection Configuration

PS: jmeter資料庫驅動列表

資料庫

驅動

資料庫url

mysql

com.mysql.jdbc.Driver

jdbc:mysql://host:port/{dbname}?allowMultiQueries=true

oracle

org.postgresql.Driver

jdbc:oracle:thin:user/[email protected]//host:port/service

PostgreSQL

oracle.jdbc.driver.OracleDriver

jdbc:postgresql:{dbname}

MSSQL

com.microsoft.sqlserver.jdbc.SQLServerDriver

或者

net.sourceforge.jtds.jdbc.Driver

jdbc:sqlserver://IP:1433;databaseName=DBname

或者

jdbc:jtds:sqlserver://localhost:1433/"+"library"

3、jmeter執行sql---添加jdbc request

 4、jmeter中查看sql執行結果

 

jmeter操作資料庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.