编辑/etc/my.cnf,增加skip-name-resolve

skip-name-resolve

然后重启mysql