mysql8解决null, message from server: “Host is not allowed to connect to this MySQL server“问题
1.登录mysqlmysql-uroot-proot2.切换到mysql库:usemysql;3.查询root用户的host值:selectuser,hostfromuser;如果host的值是localhost,说明只支持本地连接,不能远程登录。4.更改host的值为%:updateusersethost='%'whereuser='root';5.刷新权限:flushprivileges;6.