可以在一台机器上访问另一台机器的MySQL,但是需要一些设置. 进入MySQL后,输入以下命令: GRANT ALL PRIVILEGES ON *.* TO 'tigase'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; 允许任何主机以tigase为用户名(root用户不能远程登录,只能本地登录),123456为密码访问MySQL. flush privileges; 让MySQL重新加载权限,使赋予的权限能够马上生效.
1.修改数据表 可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在 localhost 的那台电脑,登入MySQL后,更改 "MySQL" 数据库里的 "user" 表里的 "Host" 项,从"localhost"改称"%",%表示所有机器都允许. mysql> use mysql mysql> update user set Host='%' where User='r