我将我的网站移动到godaddy服务器,但即使有足够的更改,SQL连接也无法正常工作
$link = mysql_connect('www.xxxxx.com', 'phpadminusername', 'phpadminpasswor');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
/*echo 'Connected successfully';*/
echo "DB CONNECTION :ACTIVE";
?>
它显示错误
Warning: mysql_connect() [function.mysql-connect]: Lost connection to
MySQL server at ‘reading initial communication packet’, system error:
111 in /home/content/58/9508458/html/psychiatric/private.php on line
196 Could not connect: Lost connection to MySQL server at ‘reading
initial communication packet’, system error: 111