MySQL or PostgreSQL easier setup for Confluence on RHEL?

I'm running Confluence on Red Hat Enterprise Linux in an Amazon EC2 instance.

Which would be easier to set up, MySQL or PostreSQL? From the documentation, it sounds like PostgreSQL is:

6 answers

1 accepted

1 vote

It's not actually a really simple answer! But it's not too bad to work it out

1. If you have more experience with one of them than the other, use that one.

2. If you really don't care or can't decide, then the answer is PostgreSQL, simply because Atlassian have it slightly higher in their list and tend to work with it by default.

I would suggest PostgreSQL if you're free to choose. You can have equal trust in Confluence support for both dbs. I think Atlassian people often use or provide examples in PostgreSQL, but Confluence is also tested and supported in MySQL. You should also choose according to your experience in both systems, or the experience of your co-workers in both systems.

Hmm. I followed the instructions to install PostgreSQL:

But I was not prompted for a password as described in the Confluence "Database Setup for PostgreSQL" instructions:

Did you use JNDI or a straight JDBC? If JNDI, then you've specified the password in conf/server.xml, which is the best way to go.

NB: Btw, check your database encoding is utf8 and not latin1 (SHOW client_encoding; SHOW server_encoding). People have tried, people have had problems with encodings ;)

I followed the instructions on<>, which are:

yum install postgresql-server
service postgresql initdb
chkconfig postgresql on

None of those commands prompted me for anything.

These commands let me set a psql password for the postgres user:

sudo -u postgres psql postgres

and then at the postgres=# prompt:

\password postgres

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,777 views 25 10
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you