From fe9fefeeff9bad18fdefb86a23954878762e5f3f Mon Sep 17 00:00:00 2001 From: vdomchi <982139717@163.com> Date: Fri, 8 Sep 2023 16:41:08 +0800 Subject: [PATCH] Update out_mysql_bulk.rb for fix that can't insert utf8mb4 string value, like error_class=Mysql2::Error error="Incorrect string value: '\\xF0\\x9F\\x90\\xAF' for column xxx --- lib/fluent/plugin/out_mysql_bulk.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fluent/plugin/out_mysql_bulk.rb b/lib/fluent/plugin/out_mysql_bulk.rb index 1539eda..0ea103c 100644 --- a/lib/fluent/plugin/out_mysql_bulk.rb +++ b/lib/fluent/plugin/out_mysql_bulk.rb @@ -143,6 +143,7 @@ def client(database) username: @username, password: @password, database: database, + encoding: 'utf8mb4', sslkey: @sslkey, sslcert: @sslcert, sslca: @sslca,