net working

'The mysql driver is not currently installed'错误!!

转载自 vicbeijing
最终编辑 vicbeijing
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in E:/appserv/www/zf-tutorial/library/Zend/Db/Adapter/Pdo/Abstract.php:104 Stack trace: #0 E:/appserv/www/zf-tutorial/library/Zend/Db/Adapter/Abstract.php(367): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 E:/appserv/www/zf-tutorial/library/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query('DESCRIBE `album...', Array) #2 E:/appserv/www/zf-tutorial/library/Zend/Db/Adapter/Pdo/Mysql.php(138): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `album...') #3 E:/appserv/www/zf-tutorial/library/Zend/Db/Table/Abstract.php(595): Zend_Db_Adapter_Pdo_Mysql->describeTable('album', NULL) #4 E:/appserv/www/zf-tutorial/library/Zend/Db/Table/Abstract.php(528): Zend_Db_Table_Abstract->_setupMetadata() #5 E:/appserv/www/zf-tutorial/library/Zend/Db/Table/Abstract.php(264): Zend_Db_Table_Abstract->_setup() #6 E:/appserv/www/zf-tutorial/application/controllers/IndexController.php(13): Zend_Db_Table_Abstract-> in E:/appserv/www/zf-tutorial/library/Zend/Db/Adapter/Pdo/Abstract.php on line 104
经过我的一番苦苦寻找,我都快要抓狂了,原来解决方法十分的简单,在php.ini中将extension=php_pdo_mysql.dll这项扩展打开,就完成了,如果没有这项扩展,你可以自行添加。在这里贴出来希望以后遇到这种情况的朋友少走一些弯路。

 

阅读更多
个人分类: PHPprogramming
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭