Skip to content

Cannot set the connection character set to utf8mb4 #53

Open
@minusbat

Description

@minusbat

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions