From 7064b52c5c944fc842bf551bc642667ce495af9c Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Mon, 16 Dec 2024 23:24:12 -0800 Subject: [PATCH] updated inital script --- configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 85fb107..1db7616 100755 --- a/configuration.nix +++ b/configuration.nix @@ -345,7 +345,8 @@ in services.mysql.initialScript = pkgs.writeText "wordpress-init.sql" '' 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; '' ;