Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set the connection character set to utf8mb4 #53

Open
minusbat opened this issue Mar 13, 2018 · 0 comments
Open

Cannot set the connection character set to utf8mb4 #53

minusbat opened this issue Mar 13, 2018 · 0 comments

Comments

@minusbat
Copy link

Mysql by default only supports 3 byte utf-8. You need to use the character set type utf8mb4 to use 4 byte Utf-8. This plugin works fine with 3 byte UTF-8, but with 4 byte it fails with the error:

error_class=Mysql2::Error error="Incorrect string value:

We belive this is because the client connection is set to uttf8 not utf8mb4. We have tried adding 'encoding utf8mb4' to the fluentd config fiile (as specified by the mysql2 docs) but this does not work unfortunately.
Could the connection always be set top utf8mb4 as this would be backward compatible with utf8 and allow this to work correctly ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant