Add automatic user creation on database init

This commit is contained in:
infosave2007
2025-11-08 17:41:33 +03:00
parent ec685e7672
commit e20686ef21
+6
View File
@@ -0,0 +1,6 @@
-- Create database user if not exists
-- This runs automatically on container startup via docker-entrypoint-initdb.d
CREATE USER IF NOT EXISTS 'amnezia'@'%' IDENTIFIED BY 'amnezia';
GRANT ALL PRIVILEGES ON amnezia_panel.* TO 'amnezia'@'%';
FLUSH PRIVILEGES;