From e5e9212332835cdf2c577ace069121624937d59c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 21 Aug 2026 08:52:51 +0000 Subject: [PATCH] Remove redundant hardcoded GRANT in db/data.sql The GRANT SYSTEM_USER statement hardcoded 'mysql_user' as the username, breaking any fresh install that uses a different MYSQL_USER value (fails with 'You are not allowed to create a user with GRANT' on MySQL 8.4 since that literal user doesn't exist). db/init-grants.sh already does this exact grant correctly and dynamically via ${MYSQL_USER}, so the line in data.sql was both redundant and the actual cause of the bug. Removing it lets a fresh install use any DB username. --- db/data.sql | 4 ---- 1 file changed, 4 deletions(-) diff --git a/db/data.sql b/db/data.sql index 135fba0e..5b5a7840 100644 --- a/db/data.sql +++ b/db/data.sql @@ -5,10 +5,6 @@ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; --- Ensure app DB user has SYSTEM_USER dynamic privilege -GRANT SYSTEM_USER ON *.* TO 'mysql_user'@'%'; -FLUSH PRIVILEGES; - -- ============================================================ -- Table: migrations -- Stores migration history