Test of another way to set mysql encoding

This commit is contained in:
Griatch 2019-03-20 18:54:06 +01:00
parent a5fad7198b
commit 95d9d098e5
2 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,7 @@ before_install:
- psql -U postgres -c "CREATE DATABASE evennia;"
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
- psql -U postgres -c "ALTER USER evennia CREATEDB;"
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8 COLLATE utf8_general_ci;"
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8;"
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
- mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"

View File

@ -46,6 +46,9 @@ DATABASES = {
'PASSWORD': 'password',
'HOST': 'localhost', # or an IP Address that your DB is hosted on
'PORT': '', # use default port
'OPTIONS': {
'default-character-set': 'utf8'
}
}
}