updated inital script
This commit is contained in:
1 parent
825da38d15
commit
f748baf03e
1 file changed
+2
-1
+2
-1
@@ -345,7 +345,8 @@ in
|
|||||||
|
|
||||||
services.mysql.initialScript = pkgs.writeText "wordpress-init.sql" ''
|
services.mysql.initialScript = pkgs.writeText "wordpress-init.sql" ''
|
||||||
CREATE DATABASE wordpressdb;
|
CREATE DATABASE wordpressdb;
|
||||||
GRANT ALL ON *.* TO 'wpusr'@'localhost' IDENTIFIED BY '${personalization.wordpressdb}';
|
CREATE USER wpusr WITH ENCRYPTED PASSWORD '${personalization.wordpressdb}';
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE wordpressdb TO wpusr;
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
''
|
''
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in new issue
Block a user