Commit 7965b2d0 authored by Georgi Kodinov's avatar Georgi Kodinov

merge

parents 35dcc130 edf16dbe
...@@ -208,7 +208,7 @@ sub remove_anonymous_users { ...@@ -208,7 +208,7 @@ sub remove_anonymous_users {
} }
sub remove_remote_root { 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"; print " ... Success!\n";
} else { } else {
print " ... Failed!\n"; print " ... Failed!\n";
......
...@@ -164,7 +164,7 @@ remove_anonymous_users() { ...@@ -164,7 +164,7 @@ remove_anonymous_users() {
} }
remove_remote_root() { 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 if [ $? -eq 0 ]; then
echo " ... Success!" echo " ... Success!"
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment