Confluence 5.7 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
このページでは、PostgreSQL データベースを使用する場合の Confluence 設定方法を説明します。
始める前に、以下の内容を確認します:
PostgreSQL がインストールされていない場合は、ここでインストールします。
次は、Confluence のデータを保存するための PostgreSQL データベースを作成し、データベースへのアクセス権限を有するユーザー情報を設定する必要があります。
confluenceuser
)confluence
)confluenceuser
) です。utf8
encoding.You can use pgAdmin as an alternative to the command line to complete this step. If you used the graphical installer when installing PostgreSQL, pgAdmin will be already installed on your computer.
PostgreSQL への接続方法としてJDBC 直接接続またはデータソース接続のどちらを使用するかを、利用環境に合わせて決めておいてください。分からないときは JDBC 直接接続を使用してください。
Confluence のインストールを行っていない場合は、ここでインストールしてください。Confluence インストールガイドをご覧ください。
Start Confluence, go to the Confluence Setup Wizard in your browser, and follow these steps:
Driver Class Name を求められた場合、次のように入力します。
org.postgresql.Driver
Database URL を入力するステップでは、次のように指定します:
jdbc:postgresql://<server>:<port>/<database>
For example: jdbc:postgresql://localhost:5432/confluence
Note: If you need to connect to an SSL database, add the ssl=true
parameter in the database URL. For example: jdbc:postgresql://localhost:5432/confluence?ssl=true
confluenceuser
) and password you chose earlier when setting up your Confluence database.java:comp/env/jdbc/confluence
以上で Confluence が PostgreSQL データベースにデータを保存できるようになりました。
スクリーンショット: Confluence セットアップウィザードにおける PostgreSQL への JDBC 接続設定画面
pg_hba.conf
file is not set properly, remote communication to the PostgresSQL server will fail.次のエラー メッセージが表示された場合は、localhost
から接続する際に必要となる全てのデータベース権限を confluenceuser
ユーザーに付与したかどうかを確認します。
Could not successfully test your database: : Server connection failure during transaction. Due to underlying exception: 'java.sql.SQLException: Access denied for user 'confluenceuser'@'localhost' (using password: YES)'
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.
<CONFLUENCE-INSTALLATION>/logs
and <CONFLUENCE-HOME
>/logs
).