Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 9e0afe4

Browse files
committed
update mysql workflow cmd
1 parent a369067 commit 9e0afe4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
DB_USER: root
2323
DB_PASSWORD:
2424
ports: ['3306:3306']
25+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2526

2627
steps:
2728
- uses: actions/checkout@v3
@@ -47,7 +48,7 @@ jobs:
4748
- name: Set up MySql
4849
run: |
4950
sudo /etc/init.d/mysql start
50-
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'"
51+
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot
5152
mysql -u root
5253
mysql 'CREATE DATABASE python_blogs';
5354
- name: Run Migrations

0 commit comments

Comments
 (0)