https://blog.csdn.net/weixin_44852067/article/details/119930728

    直接在ktr文件的这一段后面

    1. <attribute>
    2. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
    3. <attribute>utf-8</attribute>
    4. </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>