连接mysql提示unblock with 'mysqladmin flush-hosts'
unblock with 'mysqladmin flush-hosts'
原因:错误连接数量过大
解决办法:清除连接缓存
-- 查询错误
use performance_schema;
-- 清除错误
flush hosts;
过程
造成这个现象的原因是通过 *.* 给账号权限后,才创建的数据库。再重新给账号赋这个数据库的权限即可。
unblock with 'mysqladmin flush-hosts'
原因:错误连接数量过大
解决办法:清除连接缓存
-- 查询错误
use performance_schema;
-- 清除错误
flush hosts;
造成这个现象的原因是通过 *.* 给账号权限后,才创建的数据库。再重新给账号赋这个数据库的权限即可。