Board logo

标题: [求助] 同样的代码,在windows中正常,在linux中报错Uncaught exception 'PDOException [打印本页]

作者: kunuser    时间: 2013-8-3 14:18     标题: 同样的代码,在windows中正常,在linux中报错Uncaught exception 'PDOException

本帖最后由 kunuser 于 2013-8-3 14:19 编辑

同样的代码,在windows系统中运行正常,在linux服务器中报如下错误:

Fatal error
: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2050 ' in /mnt/www/web/danci/public_html/admin/library/Zend/Db/Statement/Pdo.php:292 Stack trace:
#0 /mnt/www/web/danci/public_html/admin/library/Zend/Db/Statement/Pdo.php(292): PDOStatement->fetchAll(2)
#1 /mnt/www/web/danci/public_html/application/controllers/UserController.php(427): Zend_Db_Statement_Pdo->fetchAll()
#2 /mnt/www/web/danci/public_html/admin/library/Zend/Controller/Action.php(513): UserController->indexAction()
#3 /mnt/www/web/danci/public_html/admin/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('indexAction')
#4 /mnt/www/web/danci/public_html/admin/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#5 /mnt/www/web/danci/public_html/index.php(52): Zend_Controller_Front->dispatch()
#6 {main} Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY000 in /mnt/www/web/danci/public_html/admin/library/Zend/Db/Statement/Pdo.php on line 296
作者: kunuser    时间: 2013-8-4 10:47

求大神们给点解决问题的意见!谢谢!在网上找了好多相关的解决方法,冒似都无效
作者: admin    时间: 2013-8-4 12:13

是没有PDO的支持吧




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2