今天尝试运行我在 Zend 框架下编码的项目,并连接到远程数据库,我遇到了这 2 个错误:
PDOException: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\trunk\library\Zend\Db\Adapter\Pdo\Abstract.php on line 129
Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\trunk\library\Zend\Db\Adapter\Pdo\Abstract.php on line 144
在它正常工作之前,我不知道今天发生了什么。似乎这是与数据库的连接问题,但问题是问题来自哪里,来自数据库服务器,或者我的项目,以及在哪里。这是第一次,我得到这个错误,我真的不知道这是什么意思。