PostgreSQL 连接 URI 的通用格式:
postgresql://[user[:password]@][netloc][:port][,...][/dbname][?param1=value1&...]
以下是一些有效的 PostgreSQL URI 示例:
postgresql://
postgresql://localhost
postgresql://localhost:5433
postgresql://localhost/mydb
postgresql://user@localhost
postgresql://user:secret@localhost
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
postgresql://host1:123,host2:456/somedb?target_session_attrs=any&application_name=myapp
URI 方案标识符可以是 postgresql:// 或 postgres://。
在 TablePlus 中,创建新连接时,您可以选择直接从 URI 导入,而不是手动输入凭据。 这种方式更加快速便捷,可以轻松创建连接。

TablePlus 是 MySQL、PostgreSQL、SQLite 和 Microsoft SQL Server 等数据库的原生客户端。您可以同时打开多个数据库。
不在 Mac 上? 下载 TablePlus for Windows.
使用 Linux? 下载适用于 Linux 的 TablePlus
需要在外出时快速编辑数据? 下载适用于 iOS 的 TablePlus.
