远程访问 mysql 被阻止,解决方法 进入控制台, >mysql -u root -p >use mysql; >UPDATE user SET host='%' WHERE user = 'root'; >flush privileges;