Last active
September 28, 2019 16:37
-
-
Save ansidev/12d79836bcfe654ee026bfa0482caad3 to your computer and use it in GitHub Desktop.
How to change character set and collation setting MariaDB/MySQL Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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