PostgreSQL Connection URL

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

    Here is the documentation for JDBC, the general URL is "jdbc:postgresql://host:port/database"

    Chapter 3 here documents the ADO.NET connection string, the general connection string is Server=host;Port=5432;User Id=username;Password=secret;Database=databasename;

    PHP documentation us here, the general connection string is host=hostname port=5432 dbname=databasename user=username password=secret

    If you're using something else, you'll have to tell us.

提交回复
热议问题