Home > Backend Development > PHP Tutorial > laravel - win2008 服务器 php pdo 驱动 [PDOException] could not find driver

laravel - win2008 服务器 php pdo 驱动 [PDOException] could not find driver

WBOY
Release: 2016-06-06 20:30:51
Original
1677 people have browsed it

服务器是 win2008

配置环境如下:

php.ini

<code>extension=php_bz2.dll
extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
extension=php_openssl.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
</code>
Copy after login
Copy after login
<code>extension=php_pdo_mysql.dll 已经开启了
</code>
Copy after login
Copy after login

在跑 php artisan queue:listen 队列的时候 报错了 以下错误

<code>[PDOException] could not find driver 
</code>
Copy after login
Copy after login

明明已经开启了啊

回复内容:

服务器是 win2008

配置环境如下:

php.ini

<code>extension=php_bz2.dll
extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
extension=php_openssl.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
</code>
Copy after login
Copy after login
<code>extension=php_pdo_mysql.dll 已经开启了
</code>
Copy after login
Copy after login

在跑 php artisan queue:listen 队列的时候 报错了 以下错误

<code>[PDOException] could not find driver 
</code>
Copy after login
Copy after login

明明已经开启了啊

ext目录中是否有这个pdo的dll

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template