The logger_exception -- that's what we store in a blob? But I digress... -- doesn't make sense. If it was an escaping issue, I would have expected some similarity (where most characters don't require escaping).

There may be a logic error in the debuging code. Because of the 'IGNORE' in the 'INSERT', we should check the number of affected rows before the fetch.

vipsoft, could this charset=utf8 be automatically added when the detection showed a mismatch between client and server? Currently I believe this is an information message, but instead can we just add it in the config? thx