MySQL or PostgreSQL easier setup for Confluence on RHEL?

Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2014

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

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2014

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.

1 vote
Adrien Ragot 2
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2014

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.

0 votes
Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2014

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

0 votes
Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2014

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.

0 votes
Adrien Ragot 2
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2014

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

0 votes
Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events