Testing to streamline mysql setup more

This commit is contained in:
Griatch 2024-06-27 18:47:49 +02:00
parent 50417d8970
commit d54886e9e4
3 changed files with 15 additions and 6 deletions

View file

@ -59,10 +59,10 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
--charset "utf8mb4"
--init_command "set collation_connection=utf8mb4_unicode_ci"
ports:
- 3306:3306
volumes:
- ${{ github.workspace }}/.github/workflows/mysql_options.cnf:/etc/mysql/conf.d/custom.cnf
steps:
- uses: actions/checkout@v3

9
.github/workflows/mysql_options.cnf vendored Normal file
View file

@ -0,0 +1,9 @@
[mysqld]
character-set-server = utf8mb4
collation-server = utf9mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4

View file

@ -46,10 +46,10 @@ DATABASES = {
"PASSWORD": "evennia",
"HOST": os.environ.get("MYSQL_HOST", "127.0.0.1"),
"PORT": os.environ.get("MYSQL_PORT", "3306"),
# "OPTIONS": {
# "charset": "utf8mb4",
# "init_command": "set collation_connection=utf8mb4_unicode_ci",
# },
"OPTIONS": {
"charset": "utf8mb4",
# "init_command": "set collation_connection=utf8mb4_unicode_ci",
},
# "TEST": {
# "NAME": "evennia",
# "OPTIONS": {