【发布时间】:2013-07-31 19:45:43
【问题描述】:
我来了
Lost connection to MySQL server at 'reading initial communication packet', system error: 2
连接数据库时出错。
如果我使用 localhost 一切正常。但是当我使用如下所示的实时 IP 地址时,我收到了错误:
mysql_connect("202.131.xxx.106:xxxx", "xxxx", "xxxxx") or die(mysql_error());
请帮助我。谢谢。
【问题讨论】:
-
仅尝试将 202.131.xxx.106 放入主机名?
-
我已经在谷歌搜索了。我没有找到解决方案