Home>Article>Backend Development> What should I do if the php environment does not support pdo?

What should I do if the php environment does not support pdo?

王林
王林 Original
2020-08-14 13:23:42 3670browse

The solution to the problem that the php environment does not support pdo: first open the php.ini configuration file; then modify the configuration [extension=php_pdo.dll] and [extension=php_pdo_mysql.dll]; and finally restart apache.

What should I do if the php environment does not support pdo?

Specific method:

(Recommended tutorial:php graphic tutorial)

Open first php.ini configuration file, find extension=php_pdo.dll and extension=php_pdo_mysql.dll;

Then remove the previous ";" comment, the modified two lines of configuration content are as follows:

extension=php_pdo.dll extension=php_pdo_mysql.dll

Finally, just restart apache.

(Video tutorial recommendation:php video tutorial)

You can see the detailed information of the PDO extension by viewing phpinfo.


      

Run it. If you can see the information as shown in the figure, the connection is successful.

What should I do if the php environment does not support pdo?

The above is the detailed content of What should I do if the php environment does not support pdo?. For more information, please follow other related articles on the PHP Chinese website!

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