Home  >  Article  >  Backend Development  >  mysql - php cannot use pdo under CentOS6.5

mysql - php cannot use pdo under CentOS6.5

WBOY
WBOYOriginal
2016-08-22 11:45:40978browse

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>

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>

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

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

Statement:
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