Add automatic user creation on database init
This commit is contained in:
1 parent
993758b309
commit
1596325e82
1 file changed
+6
@@ -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