From 784513b3ccee0e2dfd5a2be891e2f17db14facaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 8 Aug 2017 00:12:09 +0100 Subject: [PATCH] Use utf8 encoding for the mysql database --- provisioning/bootstrap.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index e35af45a..9d210fe8 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -22,6 +22,7 @@ apt-get install -y mysql-server mysql -uroot -p$DBPASSWD -e "CREATE DATABASE $DBNAME; GRANT ALL PRIVILEGES ON $DBNAME.* TO '$DBUSER'@'localhost' IDENTIFIED BY '$DBPASSWD'" mysql -uroot -p$DBPASSWD -e "GRANT ALL PRIVILEGES ON test_$DBNAME.* TO '$DBUSER'@'localhost'" +mysql -uroot -p$DBPASSWD -e "ALTER DATABASE databasename CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" # Configuration de redis REDIS_PASSWD="dummy" @@ -43,11 +44,6 @@ cat >> ~ubuntu/.bashrc <