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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.