Home  >  Article  >  Backend Development  >  PHP could not find driver solution tutorial_PHP tutorial

PHP could not find driver solution tutorial_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 14:53:581649browse

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364677.htmlTechArticleWhen debugging a PHP program, this error was reported, could not find driver. Search online, there is a solution. As shown below, it turns out that the PDO object is used in my program to connect to mysql 5. In...
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