首页 | 新闻 | 交流 | 问吧 | 文档 | 手册 | 下载 | 博客

收藏此问题 发表新评论

这是什么错误.

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but not loaded' in F:\AppServ\www\zf-tutorial\library\Zend\Db\Adapter\Pdo\Abstract.php:95 Stack trace: #0 F:\AppServ\www\zf-tutorial\library\Zend\Db\Adapter\Abstract.php(263): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 F:\AppServ\www\zf-tutorial\library\Zend\Db\Adapter\Pdo\Abstract.php(206): Zend_Db_Adapter_Abstract->query('DESCRIBE `album...', Array) #2 F:\AppServ\www\zf-tutorial\library\Zend\Db\Adapter\Pdo\Mysql.php(138): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `album...') #3 F:\AppServ\www\zf-tutorial\library\Zend\Db\Table\Abstract.php(595): Zend_Db_Adapter_Pdo_Mysql->describeTable('album', NULL) #4 F:\AppServ\www\zf-tutorial\library\Zend\Db\Table\Abstract.php(528): Zend_Db_Table_Abstract->_setupMetadata() #5 F:\AppServ\www\zf-tutorial\library\Zend\Db\Table\Abstract.php(264): Zend_Db_Table_Abstract->_setup() #6 F:\AppServ\www\zf-tutorial\application\controllers\IndexController.php(13): Zend_Db in F:\AppServ\www\zf-tutorial\library\Zend\Db\Adapter\Pdo\Abstract.php on line 95

[ 本帖最后由 kylingood 于 2007-8-25 11:19 编辑 ]
昵称: kylingood  时间: 2007-08-25 10:23:00
PHP没有加入pdo扩展,修改php.ini
去掉
;extension=php_pdo.dll
;extension=php_pdo_mysql.dll
这两项前的分号,重启apache!
昵称: 网鬼  时间: 2007-08-25 13:53:00
:lol :lol :lol :lol
谢谢~~~~~~~~~~
昵称: kylingood  时间: 2007-08-27 09:58:00