mysql -u root -p 进入mysql show databases; use mysql; select host,user,password from user; 然后把其中一个的host改成“%” 重启mysql服务,搞定。