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