From b62cb6b47bf5638299499f88a28a32848a64d834 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Mon, 16 Dec 2024 23:42:24 -0800 Subject: [PATCH] updated inital script --- configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index f801be3..c05dd60 100755 --- a/configuration.nix +++ b/configuration.nix @@ -345,8 +345,8 @@ in services.mysql.initialScript = pkgs.writeText "wordpress-init.sql" '' CREATE DATABASE wordpressdb; - CREATE USER wpusr WITH ENCRYPTED PASSWORD ${personalization.wordpressdb}; - GRANT ALL PRIVILEGES ON DATABASE wordpressdb TO wpusr; + CREATE USER 'wpusr'@'localhost' IDENTIFIED BY 'new_password'; + GRANT ALL ON wordpressdb.* TO 'wpusr'@'localhost'; FLUSH PRIVILEGES; '' ;