CI: fix myslq.cni file init syntax

This commit is contained in:
Griatch 2025-12-22 09:48:41 +01:00
parent fdcf285588
commit 3c52981bbe
3 changed files with 7 additions and 2 deletions

View file

@ -69,7 +69,8 @@ runs:
- name: Verify MySQL settings before migrations
if: ${{ inputs.testing-db == 'mysql' }}
run: |
mysql -h 127.0.0.1 -u evennia -ppassword evennia -e "SELECT @@innodb_default_row_format as row_format;"
echo "Verifying MySQL server settings:"
mysql -u evennia -ppassword evennia -e "SELECT @@innodb_default_row_format as row_format, @@character_set_server as charset, @@collation_server as collation, @@innodb_large_prefix as large_prefix;"
shell: bash
- name: Run migrations

View file

@ -64,6 +64,9 @@ runs:
GRANT SESSION_VARIABLES_ADMIN ON *.* TO 'evennia'@'::1';
FLUSH PRIVILEGES;
EOF
# Verify MySQL settings are applied correctly
echo "Verifying MySQL configuration:"
mysql -u root -proot_password -e "SELECT @@innodb_default_row_format as row_format, @@character_set_server as charset, @@collation_server as collation;" || true
shell: bash
# get logs from db start

View file

@ -70,7 +70,8 @@ jobs:
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
innodb-default-row-format=DYNAMIC
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
- name: Set up database (mysql)
uses: ./.github/actions/setup-database