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
Answer accepted

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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

924 views 2 13
Read article

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