Laravel:錯(cuò)誤[PDOException]:無法在PostgreSQL中查找驅(qū)動(dòng)程序我正在嘗試通過Laravel連接PostgreSQL數(shù)據(jù)庫(kù),以便進(jìn)行php工匠遷移,但似乎沒有被定向,因?yàn)樗谧x取MySQL的數(shù)據(jù)庫(kù)名稱。以下是來自database.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' => '',
),),如果我刪除MySQL路徑,我會(huì)得到:[InvalidArgumentException]Database [mysql] not configured.編輯: 當(dāng)嘗試做php artisan遷移時(shí),我得到'PDOException:找不到驅(qū)動(dòng)程序'。我正在使用WAMP而且我在Win8.1中。使用PostgreSQL作為數(shù)據(jù)庫(kù)。
Laravel:錯(cuò)誤[PDOException]:無法在PostgreSQL中查找驅(qū)動(dòng)程序
喵喵時(shí)光機(jī)
2019-08-28 10:38:08