updated inital script
This commit is contained in:
parent
5922b9a88c
commit
b62cb6b47b
@ -345,8 +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;
|
||||||
CREATE USER wpusr WITH ENCRYPTED PASSWORD ${personalization.wordpressdb};
|
CREATE USER 'wpusr'@'localhost' IDENTIFIED BY 'new_password';
|
||||||
GRANT ALL PRIVILEGES ON DATABASE wordpressdb TO wpusr;
|
GRANT ALL ON wordpressdb.* TO 'wpusr'@'localhost';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
''
|
''
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user