:(

SQLSTATE[HY000] [2002] No route to host

错误位置

FILE: /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 105

TRACE

#0 /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver.class.php(105): E('SQLSTATE[HY000]...')
#1 /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver.class.php(1037): Think\Db\Driver->connect()
#2 /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(50): Think\Db\Driver->initConnect(true)
#3 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(132): Think\Db\Driver\Mysql->getFields('gst_product_spe...')
#4 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(120): Think\Model->flush()
#5 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(1431): Think\Model->_checkTableInfo()
#6 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(95): Think\Model->db(0, 'mysql://oa:Qwe!...', true)
#7 /data/www/cosunter/ThinkPHP/Common/functions.php(539): Think\Model->__construct('ProductSpec')
#8 /data/www/cosunter/Application/Home/Controller/ProductController.class.php(84): D('ProductSpec')
#9 [internal function]: Home\Controller\ProductController->change()
#10 /data/www/cosunter/ThinkPHP/Library/Think/App.class.php(156): ReflectionMethod->invoke(Object(Home\Controller\ProductController))
#11 /data/www/cosunter/ThinkPHP/Library/Think/App.class.php(194): Think\App::exec()
#12 /data/www/cosunter/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#13 /data/www/cosunter/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#14 /data/www/cosunter/index.php(6): require('/data/www/cosun...')
#15 {main}