mysql - php cannot use pdo under CentOS6.5

WBOY
Release: 2016-08-22 11:45:40
Original
988 people have browsed it

I installed pdo and pdo_mysql, but pho still cannot be used. I don’t know why. Please help me. Thank you everyone
phpinfo()

mysql - php cannot use pdo under CentOS6.5

Environment: CentOS 6.5
php: 5.6.24
Using the installation file in the php source package

mysql - php cannot use pdo under CentOS6.5

Finally add the following content to php.ini and restart apache

<code>extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo.so
extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so
</code>
Copy after login
Copy after login

Reply content:

I installed pdo and pdo_mysql, but pho still cannot be used. I don’t know why. Please help me. Thank you all
phpinfo()

mysql - php cannot use pdo under CentOS6.5

Environment: CentOS 6.5
php: 5.6.24
Using the installation file in the php source package

mysql - php cannot use pdo under CentOS6.5

Finally add the following content to php.ini and restart apache

<code>extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo.so
extension=/usr/local/php-5.6.24/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so
</code>
Copy after login
Copy after login

Finally it’s because the php.ini path is wrong

extension=pdo.so;
extension=pdo_mysql.so;
If that doesn’t work +QQ 1065890063

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!