要从露天数据库中分离数据库PostgreSQL,我以失败的方式完成了这些步骤:
CREATE USER alfresco WITH PASSWORD 'admin';
CREATE DATABASE alfresco WITH OWNER alfresco;
GRANT ALL PRIVILEGES ON DATABASE alfresco TO alfresco;
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=admin
db.name=alfresco
db.url=jdbc:postgresql://173.16.6.61:5432/alfresco
db.pool.max=275
答案 0 :(得分:1)
问题是与PostgreSQL数据库服务器的远程连接:
linux1@fe35577e9f8b:/# vim /etc/postgresql/9.4/main/postgresql.conf
并更改:
listen_addresses = '*' # it accepts connection from any IP;
linux1@fe35577e9f8b:/# vim /etc/postgresql/9.4/main/pg_hba.conf
在pg_hba.conf的末尾添加此行
host all all 0.0.0.0/0 md5