mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
More tests with new workflow.
This commit is contained in:
parent
f2c61401f6
commit
8f908ed2ac
2 changed files with 11 additions and 4 deletions
11
.github/actions/setup-database/action.yml
vendored
11
.github/actions/setup-database/action.yml
vendored
|
|
@ -43,9 +43,14 @@ runs:
|
|||
echo "MySQL is ready"
|
||||
shell: bash
|
||||
|
||||
- name: Set up MySQL Privileges
|
||||
- name: Set up MySQL Privileges and Character Set
|
||||
if: ${{ inputs.database == 'mysql' }}
|
||||
run: |
|
||||
# Set global character set and collation
|
||||
mysql -u root -proot_password -h 127.0.0.1 mysql <<EOF
|
||||
SET GLOBAL character_set_server = 'utf8mb4';
|
||||
SET GLOBAL collation_server = 'utf8mb4_unicode_ci';
|
||||
EOF
|
||||
# Ensure user exists and has proper privileges
|
||||
mysql -u root -proot_password -h 127.0.0.1 mysql <<EOF
|
||||
CREATE USER IF NOT EXISTS 'evennia'@'%' IDENTIFIED BY 'password';
|
||||
|
|
@ -53,6 +58,10 @@ runs:
|
|||
GRANT PROCESS ON *.* TO 'evennia'@'%';
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
# Set database character set
|
||||
mysql -u root -proot_password -h 127.0.0.1 evennia <<EOF
|
||||
ALTER DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
EOF
|
||||
shell: bash
|
||||
|
||||
# get logs from db start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue