Testing to streamline mysql setup more
This commit is contained in:
parent
50417d8970
commit
d54886e9e4
3 changed files with 15 additions and 6 deletions
|
|
@ -59,10 +59,10 @@ jobs:
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
--charset "utf8mb4"
|
|
||||||
--init_command "set collation_connection=utf8mb4_unicode_ci"
|
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
|
volumes:
|
||||||
|
- ${{ github.workspace }}/.github/workflows/mysql_options.cnf:/etc/mysql/conf.d/custom.cnf
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
||||||
9
.github/workflows/mysql_options.cnf
vendored
Normal file
9
.github/workflows/mysql_options.cnf
vendored
Normal 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
|
||||||
8
.github/workflows/mysql_settings.py
vendored
8
.github/workflows/mysql_settings.py
vendored
|
|
@ -46,10 +46,10 @@ DATABASES = {
|
||||||
"PASSWORD": "evennia",
|
"PASSWORD": "evennia",
|
||||||
"HOST": os.environ.get("MYSQL_HOST", "127.0.0.1"),
|
"HOST": os.environ.get("MYSQL_HOST", "127.0.0.1"),
|
||||||
"PORT": os.environ.get("MYSQL_PORT", "3306"),
|
"PORT": os.environ.get("MYSQL_PORT", "3306"),
|
||||||
# "OPTIONS": {
|
"OPTIONS": {
|
||||||
# "charset": "utf8mb4",
|
"charset": "utf8mb4",
|
||||||
# "init_command": "set collation_connection=utf8mb4_unicode_ci",
|
# "init_command": "set collation_connection=utf8mb4_unicode_ci",
|
||||||
# },
|
},
|
||||||
# "TEST": {
|
# "TEST": {
|
||||||
# "NAME": "evennia",
|
# "NAME": "evennia",
|
||||||
# "OPTIONS": {
|
# "OPTIONS": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue