- 登錄
pgsql
,確定數(shù)據(jù)庫連接正確,參考【常見問題】-【pgsql連接設(shè)置】 -
app/config
目錄下,database.php
包含數(shù)據(jù)庫的配置彤钟,打開并修改pgsql
部分為如下:
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '10.1.146.87'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'gzq'),
'username' => env('DB_USERNAME', 'postgres'),
'password' => env('DB_PASSWORD', 'postgres'),
'charset' => 'utf8',
'prefix' => 'gzq',
'schema' => 'public',
],
-
開啟擴(kuò)展
cd /opt/atphp/lib
extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pdo_mssql.dll
extension=php_pdo_odbc.dll
extension=php_pdo_firebird.dll;
extension=php_pdo_oci8.dll