From a6469362f863cb2c84d916400deee44a713cc26e 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 | 3 +-- test/github/database.yml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cdc82b96..ca7ac54b 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,6 @@ 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 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;' diff --git a/test/github/database.yml b/test/github/database.yml index 2d1fefe1..fadd7a26 100644 --- a/test/github/database.yml +++ b/test/github/database.yml @@ -23,6 +23,7 @@ jdbcsqlite3: &sqlite3 mysql2: &mysql2 <<: *common adapter: mysql2 + host: mysql mysql2spatial: <<: *mysql2