ldlbf 发表于 2014-5-23 18:51:58

军哥,我执行 php -f 想看这个编译文件,出现这个错误。是什么情况啊?

系统是 centos6.5 64位的,装的 lnmp1.0 还装了 memcached Xcache pureftp imap 就这几样了。


# php -f compiler.php help
PHP Fatal error:Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but the extension is not loaded' in /home/wwwroot/www.123.com/lib/Zend/Db/Adapter/Pdo/Abstract.php:342
Stack trace:
#0 /home/wwwroot/www.123.com/lib/Zend/Db/Adapter/Abstract.php(248): Zend_Db_Adapter_Pdo_Abstract->setFetchMode(2)
#1 /home/wwwroot/www.123.com/app/code/core/Mage/Core/Model/Resource.php(165): Zend_Db_Adapter_Abstract->__construct(Array)
#2 /home/wwwroot/www.123.com/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#3 /home/wwwroot/www.123.com/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#4 /home/wwwroot/www.123.com/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#5 /home/wwwroot/www.123.com/app/code/core/Mage/Core/Model/Resource/Db/Abs in /home/wwwroot/www.123.com/lib/Zend/Db/Adapter/Pdo/Abstract.php on line 342

报错的这个342行代码:

            throw new Zend_Db_Adapter_Exception('The PDO extension is required for this adapter but the extension is not loaded');

[ 本帖最后由 ldlbf 于 2014-5-23 19:37 编辑 ]

licess 发表于 2014-5-23 20:02:07

pdo_mysql都是有的,可以查看探针或phpinfo看是否正常

ldlbf 发表于 2014-5-23 20:05:32

原帖由 licess 于 2014-5-23 20:02 发表 https://bbs.vpser.net/images/common/back.gif
pdo_mysql都是有的,可以查看探针或phpinfo看是否正常

pdo_mysqlPDO Driver for MySQLenabledClient API versionmysqlnd 5.0.8-dev - 20102224 - $Id: 65fe78e70ce53d27a6cd578597722950e490b0d0 $
DirectiveLocal ValueMaster Valuepdo_mysql.default_socket/tmp/mysql.sock/tmp/mysql.sock
页: [1]
查看完整版本: 军哥,我执行 php -f 想看这个编译文件,出现这个错误。是什么情况啊?