From df02b2aabbfe1de9aeef71374c38a17b14e7d10b Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 30 Aug 2024 19:59:10 +0800 Subject: [PATCH] Revise SHell Code Logic --- scripts/dbPreparation.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/dbPreparation.sh b/scripts/dbPreparation.sh index 7ac2751..40b5435 100644 --- a/scripts/dbPreparation.sh +++ b/scripts/dbPreparation.sh @@ -7,7 +7,7 @@ new_root_password=$(openssl rand -base64 12) DB_NAME="wp_$(openssl rand -hex 4)" DB_USER="wp_user_$(openssl rand -hex 4)" DB_PASSWORD="$(openssl rand -base64 12)" -DB_HOST="localhost" # Change if your database is hosted elsewhere +DB_HOST="127.0.0.1" # Change if your database is hosted elsewhere echo "New root password will be: $new_root_password" echo "New WordPress database credentials:" @@ -30,7 +30,7 @@ echo "Resetting the root password..." # Reset the root password in safe mode sudo mysql -u root <