This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default character set on server to utf8mb4
Fixes #235 * Not just utf8, as per https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html
- Loading branch information
Dominique Quatravaux
committed
Feb 15, 2018
1 parent
f929696
commit 033347d
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[mysqld] | ||
|
||
# https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html | ||
# says: "The character set named utf8 uses a maximum of three bytes | ||
# per character and contains only BMP characters." | ||
# If you want emoji (which your users most probably do), you need to | ||
# use utf8mb4 instead. | ||
|
||
character-set-server=utf8mb4 | ||
collation-server=utf8mb4_unicode_ci |