PHPcouldnotfinddriver solution tutorial. When debugging a PHP program, I reported this error. couldnotfinddriver searched the internet and found the solution as follows. The PDO object was used in my program, the error "cocould not find driver" is reported when I debug a PHP program. The solution is as follows: I used PDO objects in this program, connect to mysql 5. in the default settings of PHP, only the PHP_pdo module is enabled, and the PHP_pdo_mysql module is not enabled. therefore, the driver cannot be found. open this module and restart apache. of course, if you use another database, you can open the corresponding module.
However, after this operation, I still prompted cocould not find driver to finally find out that it was because sql2000 was not installed on the machine and there was no ntwdblib. dll file. I found one online and copied it to the relevant directory.
A) php \
B) Apache \ bin \ problem solving
Login, cocould not find driver search on the Internet, there are solutions as follows, I used PDO object in this program, connect to mysql 5...