I am using confluence server 6.1 w/ PostgreSQL as database. Now here is my config file related to the SQL db.
Now I would like to use my own username to do pq_dump or any other psql command.
<myownusername>@localhost ~$ psql --username=postgres -W "pg_dump confluence > ~/conf.back"
Password for user postgres: (I typed in "Pa33word" as above config shown)
psql: FATAL: Peer authentication failed for user "postgres"
Can you please let me know why I got this error and how should I resolve this?
I actually figured this out myself, need to change "peer" to "md5" in pg_hda.conf file for PostgreSQL.
However, one more question, when I run
psql --username=postgres -W "pg_dump confluence > conf.back" and typed in the password for postgres, it gives me
psql: FATAL: database "pg_dump confluence > conf.back" does not exist
Can you tell me how to write all pg_dump command line into one line with psql command? also how to put password inline so that I can run all this from a bash automatically?
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs