exception 'QDB_Exception' with message 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' in /home/dsblog/libs/library/db/adapter/mysql.php:73

#0 /home/dsblog/libs/library/db/table.php(436): QDB_Adapter_Mysql->connect()
#1 /home/dsblog/libs/library/db/table.php(472): QDB_Table->setConn(Object(QDB_Adapter_Mysql))
#2 /home/dsblog/libs/library/db/table.php(455): QDB_Table->_setupConn()
#3 /home/dsblog/libs/library/db/table.php(367): QDB_Table->init()
#4 /home/dsblog/libs/library/orm/activerecord/meta.php(1318): QDB_Table->columns()
#5 /home/dsblog/libs/library/orm/activerecord/meta.php(242): QDB_ActiveRecord_Meta->_init1('Blog')
#6 /home/dsblog/libs/library/orm/activerecord/meta.php(256): QDB_ActiveRecord_Meta->__construct('Blog')
#7 /home/dsblog/html/_code/app/model/blog.php(164): QDB_ActiveRecord_Meta::instance('Blog')
#8 /home/dsblog/html/_code/app/controller/blog_controller.php(544): Blog::find('mid=?', '10474')
#9 [internal function]: Controller_Blog->actionView()
#10 /home/dsblog/html/_code/app/controller/abstract.php(63): call_user_func_array(Array, Array)
#11 /home/dsblog/html/_code/app/myapp.php(226): Controller_Abstract->execute('view', Array)
#12 /home/dsblog/html/index.php(40): MyApp->dispatching()
#13 {main}
如果要改变对异常的处理,请修改文件 "/home/dsblog/html/_code/app/myapp.php" 的 exception_handler() 方法