我有一個問題,當我嘗試與外部MySQL服務器的MySQL:訪問被拒絕
這裏連接錯誤消息:
ACCES被拒絕的用戶:
"user"@"myip"
當我更改端口號時,出現不同的錯誤:
$connection =mysql_connect("192.96.206.145:8443","user","password")or die(mysql_error());
if(!$connection)
{
echo 'It\'s impossible to connect with the server ! check you connection or try later ';
//exit;
}
else
{
if (!mysql_select_db($gamedatabase,$connection))
{
echo'we have problem in our server plz try again later ! ';
//exit;
}
else
{
$etat=true;
}
}
你的問題是什麼? –
我強烈建議您不要使用'mysql_ *'函數,因爲它們已被棄用,並且不再用於將來版本的PHP – deeiip