From 1b4afbca81b8a73da2c4dafcc08bf345fa3e1b0c Mon Sep 17 00:00:00 2001 From: joker-x Date: Wed, 26 Aug 2020 08:00:12 +0200 Subject: [PATCH] Add utf8mb4 to new instalations from script --- setup/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/functions b/setup/functions index fc691c28..db9e51ff 100644 --- a/setup/functions +++ b/setup/functions @@ -210,7 +210,7 @@ function installMailtrain { mysql -u root -e "GRANT ALL PRIVILEGES ON mailtrain.* TO 'mailtrain'@'localhost';" mysql -u root -e "CREATE USER 'mailtrain_ro'@'localhost' IDENTIFIED BY '$mysqlRoPassword';" mysql -u root -e "GRANT SELECT ON mailtrain.* TO 'mailtrain_ro'@'localhost';" - mysql -u mailtrain --password="$mysqlPassword" -e "CREATE database mailtrain;" + mysql -u mailtrain --password="$mysqlPassword" -e "CREATE DATABASE mailtrain CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" # Add new user for the mailtrain daemon to run as useradd mailtrain || true @@ -233,6 +233,8 @@ www: mysql: password: "$mysqlPassword" + charset: utf8mb4 + multipleStatements: true redis: enabled: true