object(PDOException)#3 (8) { ["message":protected]=> string(43) "SQLSTATE[HY000] [1040] Too many connections" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(1040) ["file":protected]=> string(43) "/service/website/img30/wwwroot/inc/func.php" ["line":protected]=> int(1476) ["trace":"Exception":private]=> array(3) { [0]=> array(6) { ["file"]=> string(43) "/service/website/img30/wwwroot/inc/func.php" ["line"]=> int(1476) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(43) "mysql:host=localhost;port=3306;dbname=img30" [1]=> string(3) "www" [2]=> string(8) "toefl121" [3]=> array(1) { [1000]=> bool(true) } } } [1]=> array(6) { ["file"]=> string(43) "/service/website/img30/wwwroot/inc/func.php" ["line"]=> int(1740) ["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(5) "img30" ["user"]=> string(3) "www" ["password"]=> string(8) "toefl121" ["hostinfo"]=> array(1) { [0]=> string(9) "localhost" } ["port"]=> string(4) "3306" } } } [2]=> array(4) { ["file"]=> string(40) "/service/website/img30/wwwroot/index.php" ["line"]=> int(4) ["function"]=> string(11) "match_route" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> NULL } database connect error