Jmeter连接mysql时区报错

Jmeter连接Mysql测试出现:

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.)

解决方法:在数据库后面加上?serverTimezone=UTC即可

 

jdbc:mysql://localhost:3306/mysqltest?serverTimezone=UTC

posted @ 2020-03-06 15:00  lemmon_water  阅读(400)  评论(0)    收藏  举报