Password authentication failed with PostgreSQL 9

Troubleshooting Databases

このページの内容

お困りですか?

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

コミュニティに質問

症状

When integrating Stash with PostgreSQL 9, the connection with the database is refused and you see a reported exception similar to this:

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user "<username>")

原因

This problem is caused because Stash has not been added to the PostgreSQL pg_hba.conf file, without which PostgreSQL 9 will not allow the connection.

ソリューション

Add Stash to the PostgreSQL pg_hba.conf file, so that PostgreSQL 9 will allow stash to connect. The pg_hba.conf file enables client authentication between the PostgreSQL server and a client application, such as Stash. The file defines a database host and its associated permissions (for example, the database it is allowed to connect to, the authentication method to use, and so on). For details of the file contents, see the PostgreSQL documentation at http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html.

 

 

最終更新日 2012 年 11 月 22 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.