1、 時區設置問題
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
2、Jmeter中使用JDBC向數據庫插入中文數據亂碼問題
解決方案:修改了JDBC的配置,在Database URL中增加了編碼格式,具體為:jdbc:mysql://<server ip>:3306/student?characterEncoding=UTF-8
3、多行查詢語句
修改了JDBC的配置,在Database URL中增加了編碼格式,具體為:jdbc:mysql://<server ip>:3306/student ?allowMultiQueries=true
4、請求數據中的中文顯示亂碼
是因為插入數據的字符串格式的數據沒有加引號,如圖
在SQL語句中給對應的字符串添加引號
5、執行jdbc請求時,報錯:Zero data value prohioited
在配置中添加?zeroDateTimeBehavior=CONVERT_TO_NULL