From 29d6630686bea0d5fff422e7408786f3bcfc09ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Thu, 14 Aug 2025 16:21:38 +0200 Subject: [PATCH] Add MySQL initialization script and update Docker configuration Original error was: Access denied; you need (at least one of) the SUPER or SYSTEM_VARIABLES_ADMIN privilege(s) for this operation --- .github/workflows/test-infrastructure-files.yml | 2 ++ infrastructure_files/mysql-init.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 infrastructure_files/mysql-init.sql diff --git a/.github/workflows/test-infrastructure-files.yml b/.github/workflows/test-infrastructure-files.yml index bd37f65c4..5aaf4913a 100644 --- a/.github/workflows/test-infrastructure-files.yml +++ b/.github/workflows/test-infrastructure-files.yml @@ -47,6 +47,8 @@ jobs: --health-timeout 5s ports: - 3306:3306 + volumes: + - ./mysql-init.sql:/docker-entrypoint-initdb.d/init.sql steps: - name: Set Database Connection String run: | diff --git a/infrastructure_files/mysql-init.sql b/infrastructure_files/mysql-init.sql new file mode 100644 index 000000000..c32658bb9 --- /dev/null +++ b/infrastructure_files/mysql-init.sql @@ -0,0 +1,2 @@ +GRANT SYSTEM_VARIABLES_ADMIN ON *.* TO 'netbird'@'%'; +FLUSH PRIVILEGES;