Skip to content

Instantly share code, notes, and snippets.

@ansidev
Last active September 28, 2019 16:37
Show Gist options
  • Save ansidev/12d79836bcfe654ee026bfa0482caad3 to your computer and use it in GitHub Desktop.
Save ansidev/12d79836bcfe654ee026bfa0482caad3 to your computer and use it in GitHub Desktop.
How to change character set and collation setting MariaDB/MySQL Docker
FROM mariadb
RUN { \
echo '[mysqld]'; \
echo 'character-set-server=utf8mb4'; \
echo 'collation-server=utf8mb4_unicode_ci'; \
} > /etc/mysql/conf.d/charset.cnf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment