From a10a0f09dd5f2b743249784dc04e0c95d1bfdbf7 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 10 Oct 2024 08:00:58 -0400 Subject: [PATCH] Update mysql-install.sh tweak --- install/mysql-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/mysql-install.sh b/install/mysql-install.sh index c6200163..7639a406 100644 --- a/install/mysql-install.sh +++ b/install/mysql-install.sh @@ -37,8 +37,9 @@ msg_ok "Installed MySQL" msg_info "Configure MySQL Server" ADMIN_PASS="$(openssl rand -base64 18 | cut -c1-13)" $STD mysql -uroot -p"$ADMIN_PASS" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$ADMIN_PASS'; FLUSH PRIVILEGES;" -echo "" >>~/mysql.creds -echo -e "MySQL Root Password: $ADMIN_PASS" >>~/mysql.creds +echo "" >~/mysql.creds +echo -e "MySQL user: root" >>~/mysql.creds +echo -e "MySQL password: $ADMIN_PASS" >>~/mysql.creds msg_ok "MySQL Server configured" read -r -p "Would you like to add PhpMyAdmin? " prompt