postgresql – Postgres连接url

postgresql – Postgres连接url,第1张

概述如何形成Postgres连接网址,当主机是本地主机以外的其他计算机? 我允许Postgres接受来自外部的请求。 如果你使用Libpq绑定各自的语言,根据它的 documentation URI形成如下: postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...] 这里是同一文档的示例 postgresql 如何形成Postgres连接网址,当主机是本地主机以外的其他计算机?

我允许Postgres接受来自外部的请求。

如果你使用libpq绑定各自的语言,根据它的 documentation URI形成如下:
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]

这里是同一文档的示例

postgresql://postgresql://localhostpostgresql://localhost:5433postgresql://localhost/mydbpostgresql://user@localhostpostgresql://user:secret@localhostpostgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
总结

以上是内存溢出为你收集整理的postgresql – Postgres连接url全部内容,希望文章能够帮你解决postgresql – Postgres连接url所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/sjk/1171843.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-02
下一篇2022-06-02

发表评论

登录后才能评论

评论列表(0条)

    保存