فهرست منبع

remove mysql record without password

Serghey Rodin 12 سال پیش
والد
کامیت
ab09d1459d
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      install/vst-install.sh

+ 1 - 0
install/vst-install.sh

@@ -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