From b71703f5798e2cb9104bf0cf9edd0ef7869362b1 Mon Sep 17 00:00:00 2001 From: Ryota Murakami Date: Fri, 22 Nov 2024 00:46:06 +0900 Subject: [PATCH] Update Playwright Admin Workflow to Use External MySQL Configuration - Removed inline MySQL character set and collation options from the workflow file. - Added a new my.cnf configuration file to specify MySQL settings including default-authentication --- .github/workflows/playwright_admin.yml | 4 ++-- my.cnf | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 my.cnf diff --git a/.github/workflows/playwright_admin.yml b/.github/workflows/playwright_admin.yml index 01d60cca..d876f5ef 100644 --- a/.github/workflows/playwright_admin.yml +++ b/.github/workflows/playwright_admin.yml @@ -15,8 +15,6 @@ jobs: ports: - '3306:3306' options: >- - --character-set-server=utf8mb4 - --collation-server=utf8mb4_unicode_ci --health-cmd="mysqladmin ping --silent" --health-interval=10s --health-timeout=5s @@ -26,6 +24,8 @@ jobs: MYSQL_DATABASE: digital MYSQL_USER: root MYSQL_PASSWORD: password + volumes: + - ./my.cnf:/etc/mysql/conf.d/my.cnf steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/my.cnf b/my.cnf new file mode 100644 index 00000000..4f426adc --- /dev/null +++ b/my.cnf @@ -0,0 +1,4 @@ +[mysqld] +default-authentication-plugin=mysql_native_password +character-set-server=utf8mb4 +collation-server=utf8mb4_unicode_ci