PostgreSQL Connection URL

前端 未结 6 2015
离开以前
离开以前 2020-12-02 03:50

How is the PostgreSQL connection URL formed, when the host is some other computer than the localhost?

I have allowed PostgreSQL to accept requests from outside.

6条回答
  •  感情败类
    2020-12-02 04:39

    the connection url for postgres syntax:

    "Server=host ipaddress;Port=5432;Database=dbname;User Id=userid;Password=password;
    

    example:

    "Server=192.168.1.163;Port=5432;Database=postgres;User Id=postgres;Password=root;
    

提交回复
热议问题