尝试连接到远程 Mysql 服务器时出现此错误:
php_network_getaddresses: getaddrinfo failed: Hôte inconnu.
(翻译:)Host unknown
。
con.php:
<?php
$db_host = 'http://xxx.xxx.xxx.xxx';
$db_username = 'xxx';
$db_password = 'xxx';
$db_name = 'xxx';
$con = mysql_connect($db_host,$db_username,$db_password);
$select_db = mysql_select_db($db_name,$con);
?>
连接到本地主机时一切正常,但对于远程连接它不起作用。