如何使用SQL Developer连接Azure云PostgreSQL服务器?若不可行推荐什么IDE?
能否用SQL Developer连接Azure PostgreSQL?
不能直接使用SQL Developer连接Azure PostgreSQL服务器。SQL Developer是Oracle官方推出的IDE,核心适配Oracle数据库,没有原生支持PostgreSQL的驱动与连接逻辑,无法建立有效连接。
推荐的替代IDE及连接方法
1. pgAdmin(PostgreSQL官方工具)
这是PostgreSQL生态下最常用的管理工具,完全适配Azure PostgreSQL:
- 打开pgAdmin,右键点击「Servers」>「Register」>「Server」
- 「General」标签页:自定义输入服务器名称
- 「Connection」标签页:
- Host name/address:填写Azure PostgreSQL的服务器域名(格式如
xxx.postgres.database.azure.com) - Port:默认
5432 - Maintenance database:默认
postgres - Username:Azure PostgreSQL管理员用户名(格式:
<用户名>@<服务器名称>) - Password:管理员密码
- Host name/address:填写Azure PostgreSQL的服务器域名(格式如
- 「SSL」标签页:勾选「Require SSL connection」(Azure PostgreSQL强制要求SSL)
- 点击「Save」完成连接
2. DBeaver(通用数据库IDE)
支持几乎所有主流数据库,操作灵活:
- 打开DBeaver,点击左上角「Database」>「New Database Connection」
- 选择「PostgreSQL」后点击「Next」
- 填写连接参数:
- Host:Azure PostgreSQL服务器域名
- Port:
5432 - Database:
postgres(或目标自定义数据库) - Username:
<用户名>@<服务器名称> - Password:对应密码
- 点击「Edit Driver Settings」,确认驱动已自动安装
- 切换到「SSL」标签,勾选「Use SSL」并选择「Require」模式
- 点击「Test Connection」验证,通过后点击「Finish」
3. Azure Data Studio(微软官方云工具)
针对Azure云服务优化,集成Azure生态功能:
- 打开Azure Data Studio,点击左侧「Connections」面板的「New Connection」
- 连接窗口配置:
- Connection type:选择「PostgreSQL」
- Server:Azure PostgreSQL服务器域名
- Database:
postgres(或目标数据库) - Authentication type:选择「Password」
- User name:
<用户名>@<服务器名称> - Password:管理员密码
- 勾选「Encrypt connection」
- 点击「Connect」完成连接
内容的提问来源于stack exchange,提问作者JazCodes
相关产品推荐
相关产品推荐

