Configuration database character set is utf8mb4, and increase the profile initconnect = 'set names utf8mb4' after being given the still

Increasing the database configuration: the effect is not execution set names utf8mb4 before sql execution;

Set names utf8mb4 effect is performed: the value of environment variable to configure three utf8mb4; below

 initconnect='set names utf8mb4' 

After configuration, database configuration is actually in force, but is covered by the initialization sql jdbc out:

Such as database logs: the same link as 102: set names utf8mb4 before performing a database configuration performed, followed by another to perform a set names utf8 is jdbc link execution, it covers the configuration database led to no avail; therefore query the character set utf8mb4 or error

Execution set names utf8 source package Location:

Execution set names utf8 source code location: will be determined prior to each execution sql useutf8mb4 true or false to perform pre-configuration corresponding to sql;

 

It is not known how to solve this case, the chiefs know that you can tell what; (mainly this.io.serverCharsetIndex not CharsetMapping in)

Published 301 original articles · 197 won praise · views 270 000 +

Guess you like

Origin blog.csdn.net/boss_way/article/details/103868377