PostgreSQLの呼び出しは「Pg」なので指定を変更します。大文字と小文字も区別されます。
! 修正例
下記は、maia mailguardのDSNを設定しようとしています。しかし、DBIの指定にMySQLのような形式で指定しているため、不具合が発生しました。他でも指定方法が似ているなら、同じように指定し直すと良い場合があります。
修正前
$dsn = "DBI:Pg:maia:localhost:5432";
修正後
$dsn = "DBI:Pg:dbname=maia;host=localhost;port=5432";
! 不具合の例
maia mailguardの導入時に、間違えて指定した例です。
DBI connect('maia:localhost:5432','maia',...) failed: missing "=" after "maia:localhost:5432" in connection info string
at scripts/configtest.pl line 306
Database DSN test : FAILED (verify $dsn, $username, and $password in /etc/maia.conf)
|