Add utf8mb4 to new instalations from script
This commit is contained in:
parent
fcae585417
commit
1b4afbca81
1 changed files with 3 additions and 1 deletions
|
@ -210,7 +210,7 @@ function installMailtrain {
|
||||||
mysql -u root -e "GRANT ALL PRIVILEGES ON mailtrain.* TO 'mailtrain'@'localhost';"
|
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 "CREATE USER 'mailtrain_ro'@'localhost' IDENTIFIED BY '$mysqlRoPassword';"
|
||||||
mysql -u root -e "GRANT SELECT ON mailtrain.* TO 'mailtrain_ro'@'localhost';"
|
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
|
# Add new user for the mailtrain daemon to run as
|
||||||
useradd mailtrain || true
|
useradd mailtrain || true
|
||||||
|
@ -233,6 +233,8 @@ www:
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
password: "$mysqlPassword"
|
password: "$mysqlPassword"
|
||||||
|
charset: utf8mb4
|
||||||
|
multipleStatements: true
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue