mysqladmin flush-hosts -uroot -p -h127.0.0.1 -P3306 然后输入密码就可以了 转载于:https://www.cnblogs.com/ringwang/p/7063317.html