Skip to content

Commit 3dda3ce

Browse files
committed
Move default authentication plugin config into my.cnf file
1 parent 188af0f commit 3dda3ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/testing.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
MYSQL_ROOT_PASSWORD: root
111111
ports:
112112
- 3306
113-
options: --default-authentication-plugin="mysql_native_password" --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
113+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
114114

115115
steps:
116116
- name: Check out source code
@@ -150,6 +150,10 @@ jobs:
150150
if: steps.check_files.outputs.files_exists == 'true'
151151
run: COMPOSER_ROOT_VERSION=dev-master composer install --prefer-dist --no-progress --no-suggest
152152

153+
- name: Configure MySQL server
154+
if: steps.check_files.outputs.files_exists == 'true'
155+
run: echo -e '[mysqld]\ndefault-authentication-plugin=mysql_native_password' > "$HOME/.my.cnf"
156+
153157
- name: Start MySQL server
154158
if: steps.check_files.outputs.files_exists == 'true'
155159
run: sudo systemctl start mysql

0 commit comments

Comments
 (0)