Use utf8 encoding for the mysql database
This commit is contained in:
parent
88597e62f1
commit
784513b3cc
1 changed files with 1 additions and 5 deletions
|
@ -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 "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 "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
|
# Configuration de redis
|
||||||
REDIS_PASSWD="dummy"
|
REDIS_PASSWD="dummy"
|
||||||
|
@ -43,11 +44,6 @@ cat >> ~ubuntu/.bashrc <<EOF
|
||||||
# On utilise la version de développement de GestioCOF
|
# On utilise la version de développement de GestioCOF
|
||||||
export DJANGO_SETTINGS_MODULE='cof.settings.dev'
|
export DJANGO_SETTINGS_MODULE='cof.settings.dev'
|
||||||
|
|
||||||
# Identifiants MySQL
|
|
||||||
export DBUSER="$DBUSER"
|
|
||||||
export DBNAME="$DBNAME"
|
|
||||||
export DBPASSWD="$DBPASSWD"
|
|
||||||
|
|
||||||
# Permet d'utiliser les utilitaires pythons locaux
|
# Permet d'utiliser les utilitaires pythons locaux
|
||||||
export PATH="\$PATH:\$HOME/.local/bin"
|
export PATH="\$PATH:\$HOME/.local/bin"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue