Jmeter连接数据库问题
1.问题描述
Cannot create PoolableConnectionFactory (The server time zone value '??????r?g' 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.)
2.解决办法
在db连接串后面加上:serverTimezone=UTC,完整案例:jdbc:mysql://localhost:3306/user?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
3.连接数据库
Jmeter连接mysql数据库
Database URL:jdbc:mysql://localhost:3306/user?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
JDBC Driver Class:com.mysql.jdbc.Driver
Username:root
Password:123456