2016-11-10 284 views
0

我收到此錯誤消息當我嘗試通過PHP在Windows未捕獲的異常「PDOException」有消息「SQLSTATE [08006] [7]超時過期

連接的PostgreSQL
Warning: Uncaught exception 'PDOException' with message 'SQLSTATE[08006] [7] timeout expired' in C:\Apache24\htdocs\projetbdd\reconcept.php:2 Stack trace: #0 C:\Apache24\htdocs\projetbdd\reconcept.php(2): PDO->__construct('pgsql:host=loca...', 'postgres', 'momocrosse') #1 {main} thrown in C:\Apache24\htdocs\projetbdd\reconcept.php on line 2 

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Apache24\htdocs\projetbdd\reconcept.php on line 2 
+2

的可能的複製[設置一個連接超時與PDO(http://stackoverflow.com/ques蒸發散/ 21403082 /設定-A-連接超時與 - PDO) – aynber

回答

相關問題