未知的 MySQL 服务器主机
尝试连接到我的数据库服务器时,我遇到了未知主机的问题:
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2005): Unknown MySQL server host 'xxxxxxxxxxxxx:port' in index.php on line 18
第18行是我尝试请求连接MySQL服务器的那行:
$this->db = new mysqli($db_host, $db_user, $db_psw, $db_name);
我在1&1网站托管公司托管我的数据库。