diff --git a/hades/sql/000_create_db.sql b/hades/sql/000_create_db.sql index a7f363f..42cbc2d 100644 --- a/hades/sql/000_create_db.sql +++ b/hades/sql/000_create_db.sql @@ -2,3 +2,8 @@ -- This file runs first to ensure proper migration ordering SELECT 'Database migration starting for hades_db' AS message; + +-- Create hades_user for app connections (shared MySQL only has mysql_user) +CREATE USER IF NOT EXISTS 'hades_user'@'%' IDENTIFIED BY 'local-hades-pass'; +GRANT ALL PRIVILEGES ON hades_db.* TO 'hades_user'@'%'; +FLUSH PRIVILEGES;