From 0eb3f0af1b27f83bfc7ab6dbb8fbf9b7614161af Mon Sep 17 00:00:00 2001 From: Jordan Owens Date: Fri, 4 Oct 2024 11:18:49 -0400 Subject: [PATCH] Fix issue starting mysql service --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cdc82b96..cdd96695 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,6 +21,7 @@ jobs: ports: - 3306:3306 env: + MYSQL_HOST: 127.0.0.1 MYSQL_ROOT_PASSWORD: root MYSQL_USER: github MYSQL_PASSWORD: github @@ -103,8 +104,7 @@ jobs: rubygems: latest - name: Set up databases run: | - sudo /etc/init.d/mysql start - mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }} CHARACTER SET utf8 COLLATE utf8_general_ci;' -u root -proot + mysql -h localhost -e 'CREATE DATABASE ${{ env.DB_DATABASE }} CHARACTER SET utf8 COLLATE utf8_general_ci;' -u root -proot psql -h localhost -U postgres -c 'create database ${{ env.DB_DATABASE }};' psql -h localhost -U postgres -d ${{ env.DB_DATABASE }} -c 'create extension if not exists hstore;' psql -h localhost -U postgres -c 'create extension if not exists postgis;'