'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这项扩展打开,就完成了,如果没有这项扩展,你可以自行添加。在这里贴出来希望以后遇到这种情况的朋友少走一些弯路。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值