Home >Backend Development >PHP Tutorial >PHP could not find driver solution tutorial_PHP tutorial
When debugging a PHP program, this error was reported, could not find driver. Searching on the Internet, there are solutions as follows. It turns out that my program uses PDO objects and connects to mysql 5. In PHP In the default settings, only the PHP_pdo module is turned on, and the PHP_pdo_mysql module is not turned on. That's why the driver cannot be found error occurs. Just turn on this module and restart apache. Of course, if you use another database, turn on the corresponding The module is OK.
However, after doing this, I still got the prompt could not find driver. Finally, I finally found 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) Apachebin problem solving