[GH-ISSUE #282] mysql: unrecognized service #198

Closed
opened 2026-03-01 21:41:07 +03:00 by kerem · 0 comments
Owner

Originally created by @donaldtrungg on GitHub (Jun 17, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/282

I run ubuntu locally then I face with other issue relate to mysql

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: db_test
ports:
- 8888:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- name: Migrate Database
run: |
sudo service mysql start
mysql -h 127.0.0.1 --port 8888 -u root -ppassword -e 'CREATE DATABASE IF NOT EXISTS $MYSQL_DBNAME;'
npm run db:migrate:downall
npm run db:migrate:up

it has error 'mysql: unrecognized service'

Originally created by @donaldtrungg on GitHub (Jun 17, 2020). Original GitHub issue: https://github.com/nektos/act/issues/282 I run ubuntu locally then I face with other issue relate to mysql services: mysql: image: mysql:5.7 env: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: db_test ports: - 8888:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 redis: image: redis options: >- --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 ports: - 6379:6379 steps: - name: Migrate Database run: | sudo service mysql start mysql -h 127.0.0.1 --port 8888 -u root -ppassword -e 'CREATE DATABASE IF NOT EXISTS $MYSQL_DBNAME;' npm run db:migrate:downall npm run db:migrate:up it has error 'mysql: unrecognized service'
kerem closed this issue 2026-03-01 21:41:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#198
No description provided.