Home >Backend Development >PHP Problem >What should I do if php fpm does not have the pdo module?
php fpm does not have the pdo module solution: 1. Find and open the "php.ini" configuration file; 2. Set "extension_dir = "../php/ext"" on line 737; 3. In Just set "extension=pdo_mysql" on line 907.
The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.
php What should I do if fpm does not have the pdo module?
Find the php.ini configuration file:
Set on line 737
extension_dir = "../php/ext"
Set and remove on line 907;
extension=pdo_mysql
Related introduction:
PHP Data Objects (PDO) extension defines a lightweight consistent interface for PHP to access databases. Each database driver that implements the PDO interface can expose database-specific features as standard extensions. Note that using PDO extensions does not implement any database functionality by itself; you must use a database-specific PDO driver to access database services.
PDO provides a data access abstraction layer, which means that no matter which database is used, the same functions (methods) can be used to query and obtain data. PDO does not provide a database abstraction layer; it does not rewrite SQL and does not emulate missing features. If necessary, a mature abstraction layer should be used.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if php fpm does not have the pdo module?. For more information, please follow other related articles on the PHP Chinese website!