Merge pull request 'fix: create hades_user in dbinit for shared MySQL' (#6) from fix/create-hades-user-in-dbinit into main
This commit is contained in:
commit
6e8b755f38
@ -2,3 +2,8 @@
|
|||||||
-- This file runs first to ensure proper migration ordering
|
-- This file runs first to ensure proper migration ordering
|
||||||
|
|
||||||
SELECT 'Database migration starting for hades_db' AS message;
|
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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user