From b6cc807c705573dc7922f8f0d2148577365336ca Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 30 Aug 2024 19:19:37 +0800 Subject: [PATCH] Updated dbPrep Shell Script --- scripts/dbPreparation.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/dbPreparation.sh b/scripts/dbPreparation.sh index 0af733b..7ac2751 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 database -DB_NAME="db_$(openssl rand -hex 4)" -DB_USER="user_$(openssl rand -hex 4)" +# 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)" DB_PASSWORD="$(openssl rand -base64 12)" DB_HOST="localhost" # Change if your database is hosted elsewhere echo "New root password will be: $new_root_password" -echo "New database credentials:" +echo "New WordPress database credentials:" echo "Database Name: $DB_NAME" echo "Database User: $DB_USER" echo "Database Password: $DB_PASSWORD" @@ -63,8 +63,8 @@ else exit 1 fi -# Create MySQL database and user with the new root password -echo "Creating MySQL database and user with the new root password..." +# Create WordPress database and user with the new root password +echo "Creating WordPress database and user with the new root password..." mysql -u root -p"$new_root_password" <