我想連接遠程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