php中开启pdo,多次尝试均失败,请问原因

WBOY
Release: 2016-06-13 12:56:20
Original
1062 people have browsed it

php中开启pdo,多次尝试均失败,请教原因
我用的是wamp开发环境。
php版本是5.25
extension_dir:c:/wamp/php/ext
此路径中 php_pdo.dll
         php_pdo_mysql.dll
         .....
等等扩展文件都是存在的。
php.ini中,扩展路径如上,没有错误。
然后开启php.ini中的
extension=php_pdo.dll
extension=php_pdo_mysql.dll
重启apache
新建一个页面:phpinfo() 查看pdo开启情况。结果让人大跌眼镜:
页面中显示如下:
PDO
PDO support enabled 
PDO drivers  sqlite, sqlite2  

无论我怎么尝试,PDO dirvers 中都没有mysql。只有sqlite

求助解决问题的办法!!


------解决方案--------------------
有没有打开mysql的扩展?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template