PostgreSQL连接URL
发布时间:2020-12-13 16:30:36 所属栏目:百科 来源:网络整理
导读:当主机是除localhost之外的其他计算机时,PostgreSQL连接URL是如何形成的? 我允许PostgreSQL接受来自外部的请求. 如果对各自的语言使用Libpq绑定,则根据其 documentation URI形成如下: postgresql://[user[:password]@][netloc][:port][/dbname][?param1=va
当主机是除localhost之外的其他计算机时,PostgreSQL连接URL是如何形成的?
我允许PostgreSQL接受来自外部的请求.
如果对各自的语言使用Libpq绑定,则根据其
documentation URI形成如下:
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...] 以下是同一文档中的示例 postgresql:// postgresql://localhost postgresql://localhost:5432 postgresql://localhost/mydb postgresql://user@localhost postgresql://user:secret@localhost postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp postgresql://localhost/mydb?user=other&password=secret (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |