Configure etherpad to use utf8mb4

We need to set this in the settings.json.

While we're there, set the defaults in my.cnf. I don't think that
actually matters, but it also shouldn't hurt.

Change-Id: I52e65136383f6c06d1693dd3d396f527c7e0b377
This commit is contained in:
Monty Taylor 2020-04-08 14:01:28 -05:00
parent 513da85123
commit 81a1e235d0
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[client]
# Default is Latin1, if you need UTF-8 set this (also in server section)
default-character-set = utf8
default-character-set = utf8mb4
[mysqld]
wait_timeout = 28800
@ -9,7 +9,7 @@ wait_timeout = 28800
#
# Default is Latin1, if you need UTF-8 set all this (also in client section)
#
character-set-server = utf8
collation-server = utf8_bin
character_set_server = utf8
collation_server = utf8_bin
character-set-server = utf8mb4
collation-server = utf8mb4_bin
character_set_server = utf8mb4
collation_server = utf8mb4_bin

View File

@ -26,6 +26,7 @@
"user" : "{{ etherpad_db_user }}",
"host" : "localhost",
"password": "{{ etherpad_db_password }}",
"charset" : "utf8mb4",
"database": "etherpad-lite"
},
//the default text of a pad