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:

https://confluence.atlassian.com/display/DOC/Database+Configuration

6 answers

1 accepted

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

Hmm. I followed the instructions to install PostgreSQL:

http://www.postgresql.org/download/linux/redhat/

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

https://confluence.atlassian.com/display/DOC/Database+Setup+for+PostgreSQL

This widget could not be displayed.

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 ;)

This widget could not be displayed.

I followed the instructions on<http://www.postgresql.org/download/linux/redhat/>, which are:

yum install postgresql-server
service postgresql initdb
chkconfig postgresql on

None of those commands prompted me for anything.

This widget could not be displayed.

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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

509 views 7 6
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