From 062a27944bed2fcc886258d7cd551278ed8f0029 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 30 Aug 2024 22:28:09 +0800 Subject: [PATCH] Revert to working version --- scripts/dbPreparation.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/dbPreparation.sh b/scripts/dbPreparation.sh index b3aab3f..68dc701 100644 --- a/scripts/dbPreparation.sh +++ b/scripts/dbPreparation.sh @@ -3,14 +3,14 @@ # Automatically generate a new secure password for the root user new_root_password=$(openssl rand -base64 12) -# Generate random database name, user, and password for the new WordPress installation -DB_NAME="wp_$(openssl rand -hex 4)" -DB_USER="wp_user_$(openssl rand -hex 4)" +# Generate random database name, user, and password for the new database +DB_NAME="db_$(openssl rand -hex 4)" +DB_USER="user_$(openssl rand -hex 4)" DB_PASSWORD="$(openssl rand -base64 12)" -DB_HOST="127.0.0.1" # Change if your database is hosted elsewhere +DB_HOST="localhost" # Change if your database is hosted elsewhere echo "New root password will be: $new_root_password" -echo "New WordPress database credentials:" +echo "New database credentials:" echo "Database Name: $DB_NAME" echo "Database User: $DB_USER" echo "Database Password: $DB_PASSWORD" @@ -30,7 +30,7 @@ echo "Resetting the root password..." # Reset the root password in safe mode sudo mysql -u root <