Laravel PostgreSQL không thể tìm thấy trình điều khiển

Tôi đang cố gắng kết nối với cơ sở dữ liệu PostgreSQL thông qua Laravel để thực hiện di chuyển thủ công php nhưng dường như không được hướng dẫn vì nó đang đọc tên cơ sở dữ liệu của MySQL

Dưới đây là các lệnh từ cơ sở dữ liệu. php

'connections' => array(

    'sqlite' => array(
        'driver'   => 'sqlite',
        'database' => __DIR__.'/../database/production.sqlite',
        'prefix'   => '',
    ),

    'mysql' => array(
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'database'  => 'database',
        'username'  => 'root',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ),

    'pgsql' => array(
        'driver'   => 'pgsql',
        'host'     => 'localhost',
        'database' => 'postgres',
        'username' => 'postgres',
        'password' => 'root',
        'charset'  => 'utf8',
        'prefix'   => '',
        'schema'   => 'public',
    ),

    'sqlsrv' => array(
        'driver'   => 'sqlsrv',
        'host'     => 'localhost',
        'database' => 'database',
        'username' => 'root',
        'password' => '',
        'prefix'   => '',
    ),

),

Nếu tôi xóa các đường dẫn MySQL, tôi sẽ nhận được

[InvalidArgumentException]
Database [mysql] not configured.

CHỈNH SỬA.
Khi cố gắng di chuyển php artisan, tôi nhận được 'PDOException. không thể tìm thấy trình điều khiển '. Tôi đang sử dụng WAMP và tôi đang ở Win8. 1. Sử dụng PostgreSQL làm cơ sở dữ liệu.


CHỈNH SỬA.
Đã thử nghiệm một loạt giải pháp thay thế nhưng tôi vẫn phải giải quyết vấn đề này.
Tệp php.ini đã được kiểm tra trong Apache, WAMP (từ thư mục php) và PostgreSQL. extension_dir đúng như nó vốn có -> extension_dir = "c:/wamp/bin/php/php5.5.12/ext/"

extension=pdo_pgsql.dll

[InvalidArgumentException]
Database [mysql] not configured.
0 không có chú thích

Hoàn thành thủ thuật

[InvalidArgumentException]
Database [mysql] not configured.
1 trong 'Biến hệ thống' và khởi động lại. Không có cơ hội

Cảm ơn sự giúp đỡ cho đến nay

Đây là những tài xế của tôi

[InvalidArgumentException]
Database [mysql] not configured.
2 &
[InvalidArgumentException]
Database [mysql] not configured.
3 từ
[InvalidArgumentException]
Database [mysql] not configured.
0

Thông tin từ phpinfo

Phiên bản PHP 5. 5. 12

Trình biên dịch MSVC11 (Visual C++ 2012) Định cấu hình Lệnh cscript /nologo
cấu hình. js "–enable-snapshot-build" "–disable-isapi"
"–enable-debug-pack" "–without-mssql" "–without-pdo-mssql"
"–without-pi3web"
"–with-pdo-oci=C:\php-sdk\oracle\x64\instantclient10\sdk,shared"
"–with-oci8=C. \php-sdk\oracle\x64\instantclient10\sdk,shared"
"–with-oci8-11g=C. \php-sdk\oracle\x64\instantclient11\sdk,shared"
"–enable-object-out-dir=. /obj/" "–enable-com-dotnet=shared"
"–with-mcrypt=static" "–disable-static-analyze" "–with-pgo"

Tôi đang cố gắng kết nối với cơ sở dữ liệu PostgreSQL thông qua Laravel để thực hiện di chuyển thủ công php nhưng dường như không được hướng dẫn vì nó đang đọc tên cơ sở dữ liệu của MySQL

Dưới đây là các lệnh từ cơ sở dữ liệu. php

'connections' => array(

    'sqlite' => array(
        'driver'   => 'sqlite',
        'database' => __DIR__.'/../database/production.sqlite',
        'prefix'   => '',
    ),

    'mysql' => array(
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'database'  => 'database',
        'username'  => 'root',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ),

    'pgsql' => array(
        'driver'   => 'pgsql',
        'host'     => 'localhost',
        'database' => 'postgres',
        'username' => 'postgres',
        'password' => 'root',
        'charset'  => 'utf8',
        'prefix'   => '',
        'schema'   => 'public',
    ),

    'sqlsrv' => array(
        'driver'   => 'sqlsrv',
        'host'     => 'localhost',
        'database' => 'database',
        'username' => 'root',
        'password' => '',
        'prefix'   => '',
    ),

),

Nếu tôi xóa các đường dẫn MySQL, tôi sẽ nhận được

[InvalidArgumentException]
Database [mysql] not configured.

CHỈNH SỬA. Khi cố gắng di chuyển nghệ nhân php, tôi nhận được 'PDOException. không thể tìm thấy trình điều khiển '. Tôi đang sử dụng WAMP và tôi đang ở Win8. 1. Sử dụng PostgreSQL làm cơ sở dữ liệu
CHỈNH SỬA. Đã thử nghiệm một loạt các giải pháp thay thế nhưng tôi vẫn phải giải quyết vấn đề này. Tệp php.ini đã được kiểm tra trong Apache, WAMP (từ thư mục php) và PostgreSQL. extension_dir đúng như nó vốn có -> extension_dir = "c:/wamp/bin/php/php5.5.12/ext/"

extension=pdo_pgsql.dll

[InvalidArgumentException]
Database [mysql] not configured.
0 không có chú thích

Hoàn thành thủ thuật

[InvalidArgumentException]
Database [mysql] not configured.
1 trong 'Biến hệ thống' và khởi động lại. Không có cơ hội

Cảm ơn sự giúp đỡ cho đến nay

Đây là những tài xế của tôi

[InvalidArgumentException]
Database [mysql] not configured.
2 &
[InvalidArgumentException]
Database [mysql] not configured.
3 từ
[InvalidArgumentException]
Database [mysql] not configured.
0

Thông tin từ phpinfo

Phiên bản PHP 5. 5. 12

Trình biên dịch MSVC11 (Visual C++ 2012) Định cấu hình Lệnh cscript /nologo configure. js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--không-mssql" "--không-pdo-mssql" "--không-pi3web" " . \php-sdk\oracle\x64\instantclient10\sdk,shared" "--with-oci8=C. \php-sdk\oracle\x64\instantclient10\sdk,shared" "--with-oci8-11g=C. \php-sdk\oracle\x64\instantclient11\sdk,shared" "--enable-object-out-dir=. /obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"