php pdo cannot find the driver solution: 1. Place "pdo_mysql.dll" in the system32 system directory; 2. Configure the PHP installation directory as an environment variable.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
php pdo mode connection problem-driver not found
Problem description:
When I configured php.int, I clearly opened pdo_mysql.dll, but when I used PDO to connect to the DB, an error was reported that mysql driver was not found. Less than
Solution:
1. Place pdo_mysql.dll in the system32 system directory
2. Configure the Php installation directory as the environment Variable
[Recommended learning: PHP video tutorial]
The above is the detailed content of What should I do if php pdo cannot find the driver?. For more information, please follow other related articles on the PHP Chinese website!