Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise
/etc/init.d/postgresql start

su postgres

psql -U postgres -c "drop database connectedcare"

I am running the above shell command in the jenkins execute shell command.

Got this error :

psql: FATAL: Peer authentication failed for user "postgres"

I then updated the /etc/postgresql/9.1/main/pg_hba.conf based on Stackoverflow question

However the command just keeps executing and never finishes.

How can I create a database in jenkins shell command ( postregresql )

share|improve this question
    
Read the manual section on "client authentication", specifically about pg_hba.conf – Craig Ringer 19 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.