Mysql数据库远程授权
如果mysql不支持远程连接,会出现提示:错误代码是1130,ERROR 1130: Host 192.168.0.10 is not allowed to connect to this MySQL server ,解决此问题有以下2个方法: 1、改表法:在本机登入mysql后,更改“mysql”数据库里的“user”表里的“host”项,从”localhost”改为'%'。 mysql> mysql>use mysql; mysql>select 'host' from user where user='root'; #查看mysql库中的user表的host值(
用户评论