PDOException Object
(
[message:protected] => SQLSTATE[HY000] [2002] Cannot assign requested address
[string:Exception:private] =>
[code:protected] => 2002
[file:protected] => /www/wwwroot/www.qilinzyz.com/home.php
[line:protected] => 136
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /www/wwwroot/www.qilinzyz.com/home.php
[line] => 136
[function] => __construct
[class] => PDO
[type] => ->
[args] => Array
(
[0] => mysql:host=127.0.0.1;dbname=qilinzy;port=3306
[1] => qilinzy
[2] => LMAftyMC6BiHNTxx
[3] => Array
(
[19] => 2
)
)
)
[1] => Array
(
[file] => /www/wwwroot/www.qilinzyz.com/home.php
[line] => 164
[function] => init
[class] => db
[type] => ::
[args] => Array
(
)
)
[2] => Array
(
[file] => /www/wwwroot/www.qilinzyz.com/home.php
[line] => 41
[function] => __callStatic
[class] => db
[type] => ::
[args] => Array
(
[0] => query
[1] => Array
(
[0] => SELECT type_id,type_name FROM mac_type
)
)
)
[3] => Array
(
[file] => /www/wwwroot/www.qilinzyz.com/home.php
[line] => 12
[function] => __construct
[class] => qilin
[type] => ->
[args] => Array
(
)
)
[4] => Array
(
[file] => /www/wwwroot/www.qilinzyz.com/home.php
[line] => 4
[function] => url
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => HY000
[1] => 2002
[2] => Cannot assign requested address
)
)
Fatal error: Uncaught Error: Call to a member function fetchAll() on null in /www/wwwroot/www.qilinzyz.com/home.php:41
Stack trace:
#0 /www/wwwroot/www.qilinzyz.com/home.php(12): qilin->__construct()
#1 /www/wwwroot/www.qilinzyz.com/home.php(4): url()
#2 {main}
thrown in /www/wwwroot/www.qilinzyz.com/home.php on line 41