PerlでPostgreSQL (98レス)
上下前次1-新
72: 03/09/23 19:52 ID:cmhnhX8a(1) AAS
つながる。
my $dbh = DBI->connect("dbi:Pg:dbname=hogehoge", "username", "password");
my $dbh = DBI->connect("dbi:Pg:dbname=hogehoge;port=5432", "username", "password");
つながらない。
my $dbh = DBI->connect("dbi:Pg:dbname=hogehoge;host=localhost", "username", "password");
# could not connect to server: Connection refused
PostgreSQLは、Apacheと同じサーバー上で動いてます。
上のようにしてPerl/CGIでPostgreSQLにつなげてるんですが、
host=localhost を追加するとつながってくれません。
な ん で じ ゃ −
上下前次1-新書関写板覧索設栞歴
あと 26 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.012s