object(PDOException)#3 (8) { ["message":protected]=> string(41) "SQLSTATE[HY000] [2002] Connection refused" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(2002) ["file":protected]=> string(48) "/service/website/xiaoshuo23/wwwroot/inc/func.php" ["line":protected]=> int(1317) ["trace":"Exception":private]=> array(3) { [0]=> array(6) { ["file"]=> string(48) "/service/website/xiaoshuo23/wwwroot/inc/func.php" ["line"]=> int(1317) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(48) "mysql:host=localhost;port=3306;dbname=xiaoshuo23" [1]=> string(3) "www" [2]=> string(8) "toefl121" [3]=> array(1) { [1000]=> bool(true) } } } [1]=> array(6) { ["file"]=> string(48) "/service/website/xiaoshuo23/wwwroot/inc/func.php" ["line"]=> int(1581) ["function"]=> string(7) "connect" ["class"]=> string(2) "db" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(7) { ["database"]=> string(8) "mysqlpdo" ["host"]=> string(9) "localhost" ["dbname"]=> string(10) "xiaoshuo23" ["user"]=> string(3) "www" ["password"]=> string(8) "toefl121" ["hostinfo"]=> array(1) { [0]=> string(9) "localhost" } ["port"]=> string(4) "3306" } } } [2]=> array(4) { ["file"]=> string(45) "/service/website/xiaoshuo23/wwwroot/index.php" ["line"]=> int(10) ["function"]=> string(11) "match_route" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> NULL } database connect error