解决方法:1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;2. 授权法。例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。GRANT ALL ...
by sss0213 - MySQL文档中心 - 2009-01-20 14:51:29 阅读(2035) 回复(0)
以前安装原码包没有出现过不允许远程连接的问题。这次偷懒用RPM包装了,可是提示:HOST 192.168.0.1 IS NOT ALLOW CONNECT TO mysql SERVER.请教需要改哪个配置文件允许远程连接呀。
比如 WEB主机是 192.168.1.1 和192.168.1.2 mysql是 192.168.1.3 能不能在mysql里设置 只允许 192.168.1.1,192.168.1.2 连接mysql, 而其他IP都不允许连接mysql呢?
mysql -h 192.168.11.2 -u root -p Enter password: ******** [color="#ff0000"]ERROR 1130 (00000): Host '192.168.11.2[color="#ff0000"]' is not allowed to connect to this mysql server 解决办法,在192.168.11.2机器上执行 mysql>[color="#ff0000"]grant all on *.* to root@'%' identified by 'yourpassword'; mysql>[color="#ff0000"]flush privileges; //刷新权限 本文来自ChinaUnix博客,如果查看原文请点...
mysql默认是不允许远程连接的,因为有很大的安全隐患。。 所以需要手动增加可以远程访问数据库的用户。 下面是连接方式: # mysql -u root -p >;grant select,insert,update,delete on *.* to [email=root@]root@"202.11.10.253[/email] " Identified by "dboomysql"; ----允许地址202.11.10.253上用root用户,密码dboomysql来连接mysql的所有数据库,付给select,insert,update,delete权限。 grant all on *.* to [email=root@...
环境: Server1:mysql1+AS4 Server2:mysql2+AS4 目的: 从Server1连接到Server2上的mysql TNND,尝试了N遍.远程老是连接不上mysql,爆错如下: [root@etc mysql]# mysql -ueagle -p Enter password: ERROR 1045 (28000): Access denied for user [email='eagle'@'localhost']'eagle'@'localhost'[/email] (using password: YES) 找一篇文章看一下,豁然开朗,并很快解决问题.步骤如下: Server1上配置: [root@etc etc]# mysql -uroot -p...
mysql远程连接时提示: ERROR 1251: Client does not support authentication protocol requested by server;consider upgrading mysql client 远程连接的机器已经被授权了为什么还出现这个情况?
我用我的win客户机连接远程的Linux机器上的mysql出现如下错误 [web] ERROR 1130: Host '192.168.0.200' is not allowed to connect to this mysql server 请问是什么问题,该如何解决?