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


服务器是 win2008

配置环境如下:

php.ini


 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


 extension=php_pdo_mysql.dll 已经开启了

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


 [PDOException] could not find driver

明明已经开启了啊

laravel php php_pdo laravel5.1

pojtt 9 years, 4 months ago

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

沢宫爱丽奈 answered 9 years, 4 months ago

Your Answer