logo

How to change character set and collation setting MariaDB/MySQL Docker?

Posted on
Authors
FROM mariadb

RUN { \
    echo '[mysqld]'; \
    echo 'character-set-server=utf8mb4'; \
    echo 'collation-server=utf8mb4_unicode_ci'; \
} > /etc/mysql/conf.d/charset.cnf
FROM mariadb

RUN { \
    echo '[mysqld]'; \
    echo 'character-set-server=utf8mb4'; \
    echo 'collation-server=utf8mb4_unicode_ci'; \
} > /etc/mysql/conf.d/charset.cnf