https://blog.csdn.net/weixin_44852067/article/details/119930728
直接在ktr文件的这一段后面
<attribute>
<code>EXTRA_OPTION_MYSQL.characterEncoding</code>
<attribute>utf-8</attribute>
</attribute>
加入下面的代码
<attribute>
<code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
<attribute>true</attribute>
</attribute>
<attribute>
<code>EXTRA_OPTION_MYSQL.useCompression</code>
<attribute>true</attribute>
</attribute>
<attribute>
<code>EXTRA_OPTION_MYSQL.useServerPrepStmts</code>
<attribute>false</attribute>
</attribute>