Confluence のデータベース接続パラメーターを見つける方法

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

In some cases, it might be necessary to run a SQL script against the database and the connection parameters (i.e. database name, database user) are unknown. The purpose of this article is to describe where the database connection parameters used by Confluence are stored so they can be located.

ソリューション

If your confluence instance connects directly via JDBC, your database connection configuration is stored in <confluence_home>/confluence.cfg.xml file.

例:

<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.password">confluencepass</property> <property name="hibernate.connection.url">jdbc:mysql://<servername>/<databasename>?autoReconnect=true</property> <property name="hibernate.connection.username">confluencedbuser</property> <property name="hibernate.database.lower_non_ascii_supported">true</property> <property name="hibernate.dialect">com.atlassian.hibernate.dialect.MySQLDialect</property>

プロパティ

hibernate.connection.driver_class

データベースへの接続に使われる JDBC ドライバを定義します。

hibernate.connection.password

データベースへの接続に使われるパスワードを定義します。

hibernate.connection.url

データベースへの接続に使われる接続文字列を定義します。

hibernate.connection.username

データベースへの接続に使われるユーザー名を定義します。

データソース

If you're connecting via datasource, then you will see in the confluence.cfg.xml file something like the following:

<property name="hibernate.setup">true</property> <property name="hibernate.dialect">com.atlassian.hibernate.dialect.MySQLDialect</property> <property name="hibernate.connection.datasource">java:comp/env/jdbc/confluence</property>

That is, the property "hibernate.connection.datasource" is defined. If so, your connection configuration is stored within your datasource. Each application server stores its information differently, however, if you are using Tomcat, then check your server.xml file.

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。