
這似乎可以阻止知道“root”用戶存在的攻擊者?
答案1
不要刪除 MySQL 'root' 用戶,只需重命名它即可:
mysql> update user set user="somecrazyname" where user="root";
mysql> flush privileges;
我無法正確想像如果你刪除 root 使用者會發生什麼事。
這似乎可以阻止知道“root”用戶存在的攻擊者?
不要刪除 MySQL 'root' 用戶,只需重命名它即可:
mysql> update user set user="somecrazyname" where user="root";
mysql> flush privileges;
我無法正確想像如果你刪除 root 使用者會發生什麼事。