PostgreSQL Connection URL

前端 未结 6 1993
离开以前
离开以前 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:37

    The following worked for me

    const conString = "postgres://YourUserName:YourPassword@YourHostname:5432/YourDatabaseName";
    

提交回复
热议问题