错误信息:PDO::__construct() [pdo.--construct]: [2002] ͨÿ׽ֵַ(Э/ַ/˿)ֻʹһΡ (trying to connect via tcp://localhost:3306)

错误位置

FILE: D:\web\yiyigreen_v5_store\YifPHP\Class\Db.php  LINE: 25

TRACE

#0 Yif\Start::appError(2, PDO::__construct() [pdo.--construct]: [2002] ͨÿ׽ֵַ(Э/ַ/˿)ֻʹһΡ
(trying to connect via tcp://localhost:3306), D:\web\yiyigreen_v5_store\YifPHP\Class\Db.php, 25, Array ([db_config] => Array ([1] => Array ([db_host] => localhost,[db_user] => root,[db_pass] => sf123456++,[db_name] => 20131022yiyigreen3,[db_char] => utf8,[db_port] => 3306,[db_prefix] => )),[keys] => Array ([0] => 1),[key] => 1,[value] => Array ([db_host] => localhost,[db_user] => root,[db_pass] => sf123456++,[db_name] => 20131022yiyigreen3,[db_char] => utf8,[db_port] => 3306,[db_prefix] => ),[dns] => mysql:dbname=20131022yiyigreen3;host=localhost;charset=utf8;port=3306))
#1 PDO->__construct(mysql:dbname=20131022yiyigreen3;host=localhost;charset=utf8;port=3306, root, sf123456++) called at [D:\web\yiyigreen_v5_store\YifPHP\Class\Db.php:25]
#2 Yif\Db->__construct() called at [D:\web\yiyigreen_v5_store\YifPHP\Class\Db.php:84]
#3 Yif\Db::init() called at [D:\web\yiyigreen_v5_store\YifPHP\Class\Db.php:89]
#4 Yif\Db::parseLink() called at [D:\web\yiyigreen_v5_store\YifPHP\Class\Db.php:184]
#5 Yif\Db::query(select keyword as name , ishot from sqlkeyworlds where keyword <> '' and type = '3' order by type asc , indexes desc limit 7) called at [D:\web\yiyigreen_v5_store\App\Yiyigreen\Model\Freetrader.php:13]
#6 Yiyigreen\Model\Freetrader::logo() called at [D:\web\yiyigreen_v5_store\App\Yiyigreen\Controller\Freetrader.php:11]
#7 Yiyigreen\Controller\Freetrader::init() called at [D:\web\yiyigreen_v5_store\YifPHP\Class\Controller.php:15]
#8 Yif\Controller::init() called at [D:\web\yiyigreen_v5_store\YifPHP\Class\Start.php:20]
#9 Yif\Start::init() called at [D:\web\yiyigreen_v5_store\YifPHP\YifPHP.php:44]
#10 require_once(D:\web\yiyigreen_v5_store\YifPHP\YifPHP.php) called at [D:\web\yiyigreen_v5_store\Index.php:8]