1:登录mysql控制台:mysql -uroot -p 2:flush hosts 参考:https://blog.csdn.net/KarryChang/article/details/79666318