Confluence Docs 3.0 : Database Setup for PostgreSQL on Windows This page last changed on Sep 06, 2009 by ggaskell. This guide was created on a Windows XP Service Pack 3 machine. Please check the Known Issues for PostgreSQL before you start. # Installing PostgreSQL, Creating a User, and Creating a Database Obtain the PostgreSQL One Click Installer for Windows. Save it to your desktop. Double click on the installer. Choose an Installation Directory. Choose a Data Directory. Choose a password. Select the port. Choose a Locale. Click 'Next'. Wait for the installation to complete. Skip Stack Builder. Here's where to start the Admin tool. Enter a password. Make a new user. Enter a name and password. Create a new database. Assign DB Owner permissions. # Setting up Confluence to use the PostgreSQL Database At this point, you will need to download a JDBC driver from the PostgreSQL website for use with Confluence You'll need the JDBC3 driver if you're using JDK 1.4 / JDK 1.5 and the JDBC4 driver for JDK 1.6.
| Windows renames .jar extensions to .zip! Just rename it back to .jar. You'll have to set your folder options to view hidden file extensions if you can't rename it without changing the file type (Tools >> Folder Options >> View >> Uncheck "Hide Extensions for known file types."
| If the server that is hosting the PostgreSQL database is not the same server as Confluence, then please ensure that the confluence server can contact the database server and also refer to the PostgreSQL documentation on how to set up pg_hba.conf If the pg_hba.conf file is not set properly, remote communication to the PostgresSQL server will fail.
Download Confluence Standalone, unzip it. (The directory into which you unzipped the Confluence installation is called the Confluence Installation directory. Next you will define the Confluence Home directory.) Follow Step 4 of the standard install guide - Define your Confluence Home Directory. Place the JDBC Driver into the <confluence-install-path>/confluence/WEB-INF/lib folder. Start Confluence and after entering your license code on the 'Confluence Setup Wizard' page, click 'Custom Installation'. On the 'Choose a Database Configuration' page, select 'PostgreSQL' and click 'External Database'. Click 'Direct JDBC'. Enter your PostgreSQL database setup details (defined above) as indicated below. ### Running SQL Queries For ongoing maintenance of your server, you can continue to use PGAdmin as your SQL browser. # Troubleshooting If you are unable to connect to the database from Confluence and they are on different machines, most likely you have a firewall in between the two machines or your pg_hba.conf file is misconfigured. Verify that your firewall is set to allow connections through 5432 or double check your hba configuration If Confluence is complaining that it's missing a class file, you might have forgotten to place the jdbc driver in the WEB-INF/lib folder or possibly have placed it in the wrong folder. If none of the above describes your issue, please create a support ticket at http://support.atlassian.com and be sure to include your logs (found in confluence-install/logs and confluence-data/logs). Attachments: 2008-11-24_1512.png (image/png) 2008-11-24_1511.png (image/png) 2008-11-24_1501.png (image/png) 2008-11-24_1502.png (image/png) 2008-11-24_1505.png (image/png) 2008-11-24_1527.png (image/png) 2008-11-24_1522.png (image/png) 2008-11-24_1514.png (image/png) 2008-11-24_1517.png (image/png) 2008-11-24_1520.png (image/png) 2008-11-24_1537.png (image/png) 2008-11-24_1536.png (image/png) 2008-11-24_1531.png (image/png) 2008-11-24_1532.png (image/png) 2008-11-24_1534.png (image/png) 2008-11-24_1557.png (image/png) 2008-11-24_1626.png (image/png) 2008-11-24_1627.png (image/png) 2008-11-24_1628.png (image/png) 2008-11-24_1629.png (image/png) 2008-11-24_1537.png (image/png)

Document generated by Confluence on Nov 05, 2009 23:34