From 3c70bfc4a3401481096fa0ad4a3cfe5a1c16e4ee Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 9 Sep 2024 23:05:01 +0800 Subject: [PATCH] Fix DB Account Issue --- scripts/dbPreparation.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/dbPreparation.sh b/scripts/dbPreparation.sh index 68dc701..8a47a55 100644 --- a/scripts/dbPreparation.sh +++ b/scripts/dbPreparation.sh @@ -7,7 +7,7 @@ new_root_password=$(openssl rand -base64 12) DB_NAME="db_$(openssl rand -hex 4)" DB_USER="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 database credentials:" @@ -30,7 +30,7 @@ echo "Resetting the root password..." # Reset the root password in safe mode sudo mysql -u root <