diff --git a/installer.sh b/installer.sh index c83ff9e..0927904 100644 --- a/installer.sh +++ b/installer.sh @@ -242,7 +242,7 @@ whiptail --title "Installing MySQL" --infobox "Busy like a bee" 8 45 mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')" > $OUTPUT 2>&1 mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User=''" > $OUTPUT 2>&1 mysql -u root -p"$password" -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%'" > $OUTPUT 2>&1 -mysql -u root -p"$password" -e "SELECT user,authentication_string,plugin,host FROM mysql.user;" $> $OUTPUT 2>&1 +mysql -u root -p"$password" -e "SELECT user,authentication_string,plugin,host FROM mysql.user;" $OUTPUT 2>&1 mysql -u root -p"$password" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '"$password"';" > $OUTPUT 2>&1 mysql -u root -p"$password" -e "FLUSH PRIVILEGES;" > $OUTPUT 2>&1