我想连接远程mysql我有典型的问题。mysql远程连接问题?如何使用PHP连接?
$conn = mysql_connect('xxx.xxx.xxx.xxx', 'username', 'password') or die(mysql_error());
让我的系统的主机名是my.host.com和远程一个是remote.host.com
我tryed同时使用IP xxx.xxx.xxx.xxx和remote.host.com它是说
Access denied for user 'username'@'my.host.com' (using password: YES)
请帮我解决这个问题。
在此先感谢。
我使用hostname作为remote.host.com,但它显示 拒绝访问用户'username'@mymyost.com'(使用密码:YES) – itsoft3g
用户必须具有该特定主机的权限,是否设置了该特定主机那个呢? – mmattax