I am trying to use the rake tasks to create and migrate my Padrino project 
but am having no luck connecting to Postgres.

In my database.rb file I have the following:

Sequel::Model.plugin(:schema)
Sequel::Model.raise_on_save_failure = false # Do not throw exceptions on 
failure
Sequel::Model.db = case Padrino.env
  when :development then Sequel.connect(:adapter=>'postgres', 
:host=>'localhost', :database=>'padrino_template_development', 
:user=>'postgres', :password=>'', :loggers => [logger])
  when :production  then 
Sequel.connect("postgres://localhost/padrino_template_production", 
 :loggers => [logger])
  when :test        then 
Sequel.connect("postgres://localhost/padrino_template_test",       
 :loggers => [logger])
end

My pg_hba.conf containts the following line at the top (and I can log in 
using PgAdmin without giving a password)
local all postgres trust

When I run rake sq:create though I am prompted for a password, and no 
matter what I enter (or not if I enter a 'null') I get this message:

createdb: could not connect to database postgres: FATAL:  password 
authentication failed for user "postgres"
FATAL:  password authentication failed for user "postgres"
 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to