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

Sat, 28 Sep 2019 16:39:24 GMT

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'; \