Blogger Information
Blog 1
fans 0
comment 1
visits 628
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
pdo_mysql配置问题
phpcom.php.cn
Original
629 people have browsed it

首先,将pdo_mysql.dll文件放到PHP安装根目录下的ext目录下   注意,如果你在php.ini文件中配置了其他的目录为扩展目录,那就要放到配置的目录下面,具体哪个目录才是你PHP的扩展目录,要看看php.ini文件中extension_dir = "F:/PHP/AppServ/php5/ext",这一行extension_dir后指向的是哪个目录,上面是梭猫互联自己的扩展目录所在  
 然后在php.ini文件中查找"pdo",你就可以一下找到 ;extension=php_pdo.dll 这一行,看这行前面是否有分号,如果有的话,把它去掉。然后找找有没有 extension=php_pdo_mysql.dll 如果有,同样去掉前面的分号。如果没有,则手动添加上   
 最终这两行配置内容如下  
 extension=php_pdo.dll   
extension=php_pdo_mysql.dll   
保存php.ini文件,重启apache,使用phpinfo函数观察有没有pdo这个扩展,如果有说明安装成功

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
1 comments
何辉_狼书 2017-08-17 20:51:40
很不错哦,学习了
1 floor
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!