Home >Backend Development >PHP Tutorial >php 使用pdo连接mysql,驱动为mysqlnd, 连接时提示 cannot find drive?

php 使用pdo连接mysql,驱动为mysqlnd, 连接时提示 cannot find drive?

WBOY
WBOYOriginal
2016-06-06 20:38:081276browse

php 使用pdo连接mysql,驱动为mysqlnd, 连接时提示 cannot find drive?

编译是成功的

php 使用pdo连接mysql,驱动为mysqlnd, 连接时提示 cannot find drive?

实例化时,提示 could not find driver
请问怎么解决哈,我重新编译还是不行

回复内容:

php 使用pdo连接mysql,驱动为mysqlnd, 连接时提示 cannot find drive?

编译是成功的

php 使用pdo连接mysql,驱动为mysqlnd, 连接时提示 cannot find drive?

实例化时,提示 could not find driver
请问怎么解决哈,我重新编译还是不行

$dsn="mysql:xxxxx"

不是mysqlnd

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