PDOException Object ( [message:protected] => SQLSTATE[HY000] [2002] Connection refused [string:Exception:private] => [code:protected] => 2002 [file:protected] => /data/cpcss.sh.cn/DB.php [line:protected] => 16 [trace:Exception:private] => Array ( [0] => Array ( [file] => /data/cpcss.sh.cn/DB.php [line] => 16 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => mysql:host=127.0.0.1;dbname=news [1] => wangyinews [2] => Irk818$#12 ) ) [1] => Array ( [file] => /data/cpcss.sh.cn/tag.php [line] => 17 [function] => __construct [class] => DB [type] => -> [args] => Array ( [0] => Array ( [database] => news [username] => wangyinews [password] => Irk818$#12 [port] => 3306 [host] => 127.0.0.1 ) ) ) ) [previous:Exception:private] => [errorInfo] => )
Fatal error: Call to a member function prepare() on null in /data/cpcss.sh.cn/DB.php on line 131