Check root password before continuing.

pull/173/head
Joe Prochazka 2016-04-29 19:30:19 -04:00
rodzic 28af79ee74
commit 3bee95b5f8
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -184,6 +184,14 @@ if [[ $INSTALLED == "n" ]]; then
DATABASEHOST="localhost"
fi
read -p "Password for MySQL root user: " MYSQLROOTPASSWORD
# Check that the supplied password is correct.
while ! mysql -u root -p$MYSQLROOTPASSWORD -e ";" ; do
echo -e "\033[31m"
echo -e "Unable to connect to the MySQL server using the supplied password.\033[37m"
read -p "Password for MySQL root user: " MYSQLROOTPASSWORD
done
read -p "New Database Name: " DATABASENAME
read -p "New Database User Name: " DATABASEUSER
read -p "New Database User Password: " DATABASEPASSWORD