我已尝试在我的计算机或Web服务器上运行的几乎所有可能的MySQL服务器,并且每个连接都会导致PHP运行时冻结。任何锻炼/解决方案?
$mydbsql = mysql_pconnect("localhost:3301", "local", "local") or die("It doesn't even die");
or...
$mydbsql = mysql_pconnect("localhost:3306", "local", "local") or die("It doesn't even die");
or...
$mydbsql = mysql_pconnect("localhost:4430", "local", "local") or die("It doesn't even die");
调试代码显示运行connect函数之前的每一行都工作正常,但是当它到达连接时,它会冻结运行时(在加载时卡住)。
修改:等了很久,之后就出现了错误。
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Detailed Error Information:
Module FastCgiModule
Notification ExecuteRequestHandler
Handler php-5.6.1
Error Code 0x80070102
答案 0 :(得分:0)
你的mysql是使用端口3301还是端口3306? 您的示例中可能是端口错误了吗?
答案 1 :(得分:0)
通过MySQL和Linux甚至Windows,MySQL始终在端口3306上运行。