postgresql - pg_restore asking for password for database when there isn't one -
i'm setting rails app on fresh ubuntu installation , created postgres databases using rake db:create:all. in databases.yml, password field databases left blank. i'm trying pg_restore of dump captured app's production deployment, keep being prompted password. have feeling settings in pg_hba.conf file, can't remember how had them set in previous ubuntu installation. how postgres trust pg_restore local connections? or there different causing issue?
set trust
(or peer
if want match postgresql user names unix user names) local
connections in pg_hba.conf
. pretty answered in question.
if you're specifying -h localhost
explicitly you're using tcp/ip, you'll need either omit -h localhost
, use -h /tmp
or wherever unix_socket_directory
configured live, or set trust
host
connections 127.0.0.1/32
in pg_hba.conf
well.
see pg_hba.conf
, client authentication.
Comments
Post a Comment