exception 'QDB_Exception' with message 'Connection refused' in /data/wwwroot/wzhotels/_code/lib/qeephp/library/db/adapter/mysql.php:73 #0 /data/wwwroot/wzhotels/_code/lib/qeephp/library/db/table.php(436): QDB_Adapter_Mysql->connect() #1 /data/wwwroot/wzhotels/_code/lib/qeephp/library/db/table.php(472): QDB_Table->setConn(Object(QDB_Adapter_Mysql)) #2 /data/wwwroot/wzhotels/_code/lib/qeephp/library/db/table.php(455): QDB_Table->_setupConn() #3 /data/wwwroot/wzhotels/_code/lib/qeephp/library/db/table.php(367): QDB_Table->init() #4 /data/wwwroot/wzhotels/_code/lib/qeephp/library/orm/activerecord/meta.php(1318): QDB_Table->columns() #5 /data/wwwroot/wzhotels/_code/lib/qeephp/library/orm/activerecord/meta.php(242): QDB_ActiveRecord_Meta->_init1('Food') #6 /data/wwwroot/wzhotels/_code/lib/qeephp/library/orm/activerecord/meta.php(256): QDB_ActiveRecord_Meta->__construct('Food') #7 /data/wwwroot/wzhotels/_code/app/model/food.php(206): QDB_ActiveRecord_Meta::instance('Food') #8 /data/wwwroot/wzhotels/_code/app/controller/food_controller.php(91): Food::find('fid=?', 2615) #9 [internal function]: Controller_Food->actionDetail() #10 /data/wwwroot/wzhotels/_code/app/controller/abstract.php(64): call_user_func_array(Array, Array) #11 /data/wwwroot/wzhotels/_code/app/myapp.php(234): Controller_Abstract->execute('detail', Array) #12 /data/wwwroot/wzhotels/index.php(15): MyApp->dispatching() #13 {main} 如果要改变对异常的处理,请修改文件 "/data/wwwroot/wzhotels/_code/app/myapp.php" 的 exception_handler() 方法