Add automatic user creation on database init
This commit is contained in:
@@ -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;
|
||||||
Reference in New Issue
Block a user