Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence change database port

Sven Hüßner November 20, 2014

I need a secondary mysql database with an older version to run with the standard port (3306).

This means that I need to move the main mysql server from port 3306 to a different one (3307).

Confluence runs on this server. Thus I need to tell confluence to connect to the mysql server on 3307.

Nothing changes, databases don't even move. Only the port of the server changes.

 

How can i configure this in confluence?

 

Beste regards,

Sven

3 answers

1 accepted

1 vote
Answer accepted
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2014

Hi Sven,

To change the Confluence database listening ports, you can simply edit the Confluence.cfg.xml file located in confluence_home directory and add the port right after the database connection URL.

This should do the trick.

Cheers,

Rodrigo

Sven Hüßner November 20, 2014

Perfect! Worked like a charm! For furture reference, this has to be changed: <property name="hibernate.connection.url">jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB</property> Simply put ":yourPortNumber" behind the "localhost": <property name="hibernate.connection.url">jdbc:mysql://localhost:<yourPortNumber>/confluence?sessionVariables=storage_engine%3DInnoDB</property> Thank you very much sir!

Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 24, 2014

You are welcome Sven :) Glad I could help

0 votes
Nic Brough -Adaptavist-
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.
November 20, 2014

Yes, I was assuming that the poster knew how to work out a connection string. Anyway, Rodrigo beat me to the answer (and you usually find the string in the .cfg file will contain :3306 in it, which you just change to 3307)

0 votes
Sven Hüßner November 20, 2014

Forgot to mention that I have already found this article: https://answers.atlassian.com/questions/102583 But @Nic Brough [Adaptavist] did not mention the details of "Work[ing] out the new connection settings".

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events