私はPostgreSQL 9.2で作業しており、コマンドがあります:
psql -h localhost -U testdb -d postgis
このコマンドには、パスワードなしでデータベースに接続する機能があります。パスワードを入力したい。
私pg_hba.cconf
は:
local all all password
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5