remove mysql record without password

This commit is contained in:
Serghey Rodin 2013-06-06 08:28:20 +03:00
commit ab09d1459d

View file

@ -533,6 +533,7 @@ echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
mysql -e "DELETE FROM mysql.user WHERE User=''"
mysql -e "DROP DATABASE test"
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
mysql -e "DELETE FROM mysql.user WHERE user='' or password='';"
mysql -e "FLUSH PRIVILEGES"
# Bind configuration