How to move the database Confluence 4.3.3
Asked by Karen:

I'm trying to move our Confluence database to another server. I've found a few pages with instructions, but most are directing me to edit XML files that do not exist in my installation. We're on 4.3.3. I'm not changing anything about the setup except the server that the database is on (moving from a remote server to the server that runs Confluence). Help is appreciated!


Answers:
author: Tiago Comasseto
body: Hi Karen,

There are two possible files that can store database connection parameters in Confluence, the default one is the **confluence.cfg.xml** , which is located into your [Confluence home directory](https://confluence.atlassian.com/display/DOC/Confluence+Home+Directory). This is how it looks like:

```
&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;confluence-configuration&gt;  &lt;setupStep&gt;complete&lt;/setupStep&gt;  &lt;setupType&gt;custom&lt;/setupType&gt;  &lt;buildNumber&gt;3393&lt;/buildNumber&gt;  &lt;properties&gt;    &lt;property name="admin.ui.allow.daily.backup.custom.location"&gt;false&lt;/property&gt;    &lt;property name="admin.ui.allow.manual.backup.download"&gt;false&lt;/property&gt;    &lt;property name="admin.ui.allow.site.support.email"&gt;false&lt;/property&gt;    &lt;property name="attachments.dir"&gt;${confluenceHome}/attachments&lt;/property&gt;    &lt;property name="confluence.license.hash"&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;/property&gt;    &lt;property name="confluence.license.message"&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;/property&gt;    &lt;property name="confluence.setup.server.id"&gt;B3WL-TF3W-IY98-YDPI&lt;/property&gt;    &lt;property name="confluence.webapp.context.path"&gt;&lt;/property&gt;    &lt;property name="hibernate.c3p0.acquire_increment"&gt;1&lt;/property&gt;    &lt;property name="hibernate.c3p0.idle_test_period"&gt;100&lt;/property&gt;    &lt;property name="hibernate.c3p0.max_size"&gt;30&lt;/property&gt;    &lt;property name="hibernate.c3p0.max_statements"&gt;0&lt;/property&gt;    &lt;property name="hibernate.c3p0.min_size"&gt;0&lt;/property&gt;    &lt;property name="hibernate.c3p0.timeout"&gt;30&lt;/property&gt;    &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;    &lt;property name="hibernate.connection.isolation"&gt;2&lt;/property&gt;    &lt;property name="hibernate.connection.password"&gt;confluence&lt;/property&gt;    &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB&lt;/property&gt;    &lt;property name="hibernate.connection.username"&gt;confluence&lt;/property&gt;    &lt;property name="hibernate.database.lower_non_ascii_supported"&gt;true&lt;/property&gt;    &lt;property name="hibernate.dialect"&gt;com.atlassian.hibernate.dialect.MySQLDialect&lt;/property&gt;    &lt;property name="hibernate.setup"&gt;true&lt;/property&gt;    &lt;property name="lucene.index.dir"&gt;${confluenceHome}/index&lt;/property&gt;    &lt;property name="webwork.multipart.saveDir"&gt;${confluenceHome}/temp&lt;/property&gt;  &lt;/properties&gt;&lt;/confluence-configuration&gt;
```

The other possible file is the **server.xml** , which is located into your [Confluence install directory](https://confluence.atlassian.com/display/DOC/Confluence+Installation+Directory), within the sub folder called **conf**. The server.xml file contain a lot of other settings, but the lines related to the database connection would look like this:

```
&lt;Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" name="jdbc/ConfluenceDS" password="confluence" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/confluence?useUnicode=true&amp;amp;characterEncoding=UTF8" username="confluence" validationQuery="select 1"/&gt;
```

I hope this information has helped.

Cheers