1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
This commit is contained in:
Georgi Kodinov
2010-07-14 13:57:08 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ sub remove_anonymous_users {
}
sub remove_remote_root {
if (do_query("DELETE FROM mysql.user WHERE User='root' AND Host!='localhost';")) {
if (do_query("DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');")) {
print " ... Success!\n";
} else {
print " ... Failed!\n";

View File

@ -164,7 +164,7 @@ remove_anonymous_users() {
}
remove_remote_root() {
do_query "DELETE FROM mysql.user WHERE User='root' AND Host!='localhost';"
do_query "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
if [ $? -eq 0 ]; then
echo " ... Success!"
else