Skip to content

Commit

Permalink
fix(CI): Try to wait for the mysql container in case it did not start…
Browse files Browse the repository at this point in the history
… yet

Attempt to fix this "random" mysql error we see on CI:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 2

Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
  • Loading branch information
nickvergessen committed Jun 21, 2023
1 parent be44291 commit a11c586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- name: Enable ONLY_FULL_GROUP_BY MySQL option
run: |
sleep 5
echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
echo "SELECT @@sql_mode;" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
Expand Down

0 comments on commit a11c586

Please sign in to comment.