Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
/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 Mar 11 '16 at 10:00

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.