From ab853ac2a54a7c33b292051e298b35aa7337164b Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Thu, 14 Aug 2025 17:53:59 +0200 Subject: [PATCH] [server] Add MySQL initialization script and update Docker configuration (#4345) --- .github/workflows/test-infrastructure-files.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test-infrastructure-files.yml b/.github/workflows/test-infrastructure-files.yml index bd37f65c4..3855baba2 100644 --- a/.github/workflows/test-infrastructure-files.yml +++ b/.github/workflows/test-infrastructure-files.yml @@ -83,6 +83,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup MySQL privileges + if: matrix.store == 'mysql' + run: | + sleep 10 + mysql -h 127.0.0.1 -u root -pmysqlroot -e " + GRANT SYSTEM_VARIABLES_ADMIN ON *.* TO 'netbird'@'%'; + FLUSH PRIVILEGES; + " + - name: cp setup.env run: cp infrastructure_files/tests/setup.env infrastructure_files/