jmeter连接mysql数据库

1.添加jdbc的jar包

image.png

下载地址:https://dev.mysql.com/downloads/connector/j/

2.创建jdbc连接信息

image.png

variable name for created pool:链接变量名
databaseurl: jdbc:mysql://数据库ip:端口/数据库名?serverTimezone=UTC(貌似是数据库时区设置问题)
serverTimezone=UTC为解决:
Cannot create PoolableConnectionFactory (The server time zone value '???��������??��??' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.)

3.jdbc请求

image.png

4.运行查看结果


image.png

你可能感兴趣的:(jmeter连接mysql数据库)