Skip to content

Commit d4324e7

Browse files
authored
[workflow] Fix
1 parent 68dcca8 commit d4324e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎.github/workflows/ngx_php.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
PHP_SRC_VERSION: '8.0.0'
4242
NGINX_SRC_VERSION: '1.12.2'
4343
run: |
44-
mysql -h mysql-service -P 33306 -uroot -p${{secrets.DB_PASSWORD }} -e 'create database ngx_php; grant all on ngx_php.* to "ngx_php"@"%" identified by "ngx_php"; flush privileges;'
44+
mysql -h 0.0.0.0 -P 33306 -uroot -p${{secrets.DB_PASSWORD }} -e 'create database ngx_php; grant all on ngx_php.* to "ngx_php"@"%" identified by "ngx_php"; flush privileges;'
4545
if [ ! -d data-cache ]; then mkdir data-cache; fi
4646
if [ ! -f data-cache/world.sql.gz ]; then wget -O data-cache/world.sql.gz http://downloads.mysql.com/docs/world.sql.gz; fi
47-
zcat data-cache/world.sql.gz | mysql -h mysql-service -P 33306 -uroot -p${{secrets.DB_PASSWORD }}
48-
mysql -h mysql-service -P 33306 -uroot -p${{secrets.DB_PASSWORD }} -e 'grant all on world.* to "ngx_php"@"%"; flush privileges;'
47+
zcat data-cache/world.sql.gz | mysql -h 0.0.0.0 -P 33306 -uroot -p${{secrets.DB_PASSWORD }}
48+
mysql -h 0.0.0.0 -P 33306 -uroot -p${{secrets.DB_PASSWORD }} -e 'grant all on world.* to "ngx_php"@"%"; flush privileges;'
4949
./.travis/compiler.sh
5050
- name: test
5151
run: ./.travis/test.sh

0 commit comments

Comments
(0)