简体   繁体   English

pdo_mysql如何在Apache中加载扩展

[英]pdo_mysql how to load extension in Apache

Please help me I have installed pdo_mysql through pecl install pdo_mysql. 请帮我,我已经通过pecl install pdo_mysql安装了pdo_mysql。 How to load this extension in PHP? 如何在PHP中加载此扩展? somehow it won't read my PHP.ini having extension=pdo.so, extension=pdo_mysql.so? 不知何故,它不会读取具有extension = pdo.so,extension = pdo_mysql.so的PHP.ini?

If someone know how to resolve this issue? 如果有人知道如何解决此问题? Please guide me. 请指导我。

By the way I install my PHP from source, using the latest PHP 5.4.30 顺便说一下,我使用最新的PHP 5.4.30从源代码安装了我的PHP。

On a windows server you can add the following lines in your php.ini 在Windows服务器上,您可以在php.ini中添加以下行

extension=php_pdo.dll
extension=php_pdo_mysql.dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM