简体   繁体   中英

How to do configuration of PostgreSQL database in DHIS2?

I've downloaded and executed DHIS-2 in the Windows operating system. I want to connect with a PostgreSQL database. I'm trying the below configuration settings in the dhis.conf file but it's not working.

connection.dialect = org.hibernate.dialect.PostgreSQLDialect
connection.driver_class = org.postgresql.Driver
connection.url = jdbc:postgresql:dhis2
connection.username = dhis
connection.password = dhis
connection.schema = update
encryption.password = abcd

It's showing me following error message.

HTTP ERROR: 503

Problem accessing /. Reason:

    Service Unavailable

Please verify that the database name, username and password is correct.

You can test this on the command line / terminal with the following command:

psql -d dhis2 -U dhis -p

Then enter your password. If you cannot connect, one or more of database name, username and password are incorrect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM