[JMeter] JDBC Request报错"Cannot create PoolableConnectionFactory (The server time zone value 'xxx'...

问题描述

JMeter连接Mysql数据库时,JDBC Request报错,提示时区值不能被识别解析:

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


解决方案

修改JDBC Connection Configuration配置中的Database URL,在其末尾加上?serverTimezone=UTC

重新发送请求,此时JDBC Request已可正常获取到Response data


参考来源:
[1] SSM时jdbc报错 Cannot create PoolableConnectionFactory (The server time zone value '�й���׼ʱ��' is unreco

你可能感兴趣的:([JMeter] JDBC Request报错"Cannot create PoolableConnectionFactory (The server time zone value 'xxx'...)