ERROR 1130 (HY000): Host '192.168.225.128' is not allowed to connect to this MySQL server
2015-04-18 20:11
567 查看
想着在虚机上访问本地(windows)的数据库,在虚机上装好mysql后(apt-get install mysql)想着用命令mysql -h192.168.225.1 -uroot -P3306 campus去访问本地的数据库结果提示
ERROR 1130 (HY000): Host '192.168.225.128' is not allowed to connect to this MySQL server
解决方法:
在本地的客户端中执行命令:
grant all PRIVILEGES on campus.* to root@'192.168.225.128' identified by '123456';(这样相当于给128这台服务器开通了访问权限)
在linux中执行命令mysql -h192.168.225.1 -uroot -p'123456' -P3306 campus即可
期间遇到的问题:
在vi编辑其中,按上下左右四个箭头的时候会出现A,B,C,D四个字母,而并不是响应移动
解决方法:
安装vim(apt-get install vim)
ERROR 1130 (HY000): Host '192.168.225.128' is not allowed to connect to this MySQL server
解决方法:
在本地的客户端中执行命令:
grant all PRIVILEGES on campus.* to root@'192.168.225.128' identified by '123456';(这样相当于给128这台服务器开通了访问权限)
在linux中执行命令mysql -h192.168.225.1 -uroot -p'123456' -P3306 campus即可
期间遇到的问题:
在vi编辑其中,按上下左右四个箭头的时候会出现A,B,C,D四个字母,而并不是响应移动
解决方法:
安装vim(apt-get install vim)
相关文章推荐
- ERROR 1130 (HY000): Host 'xxx' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host '10.117.1.13' is not allowed to connect to this MySQL server
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host '192.168.20.165' is not allowed to connect to this MySQL server
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- ERROR 1130 (HY000) Host ‘hostname’ is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host '113.57.150.82' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- [置顶] ERROR 1130 (HY000): Host '172.16.0.123' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'xxxxxx' is not allowed to connect to this MySQL server解决办法
- ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- ERROR 1130: Host 192.168.88.160 is not allowed to connect to this MySQL server
- ERROR 1130: Host '' is not allowed to connect to thisMySQL server
- 错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server 是无法给远程连接的用
- ERROR 1130: Host is not allowed to connect to this MySQL server
- ERROR 1130: aad0 Host 'HostName' is not allowed to connect to this MySQL server