[英]How to do configuration of PostgreSQL database in DHIS2?
I've downloaded and executed DHIS-2 in the Windows operating system. 我已经在Windows操作系统中下载并执行了DHIS-2。 I want to connect with a PostgreSQL database. 我想连接一个PostgreSQL数据库。 I'm trying the below configuration settings in the dhis.conf
file but it's not working. 我正在尝试dhis.conf
文件中的以下配置设置,但不起作用。
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. 如果无法连接,则数据库名称,用户名和密码中的一个或多个不正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.