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 <