提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
[求助] 同样的代码,在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 |