当前位置:网站首页>openGauss 数据库 ODBC 环境连接配置 (Windows)
openGauss 数据库 ODBC 环境连接配置 (Windows)
2022-06-10 06:18:00 【Gauss松鼠会】
目录
Windows 操作系统自带 ODBC 数据源管理器,无需用户手动安装管理器便可直接进行配置。
实验环境
ECS(openEuler ARM)+openGauss
操作步骤
1. 下载客户端并进行安装
下载客户端 GaussDB (for openGauss) 驱动程序并进行安装:
下载地址:https://dbs-download.obs.cn-north-1.myhuaweicloud.com/rds/GaussDB_opengauss_client_tools.zip
在本地(例如 D:/download)下载 ZIP 文件后进行解压缩,解压缩后文件如下。

由于本实验 openGauss 安装在 ECS(openEuler ARM)上,所以进入 Euler2.8_arm_64 文件夹,显示如下:

解压缩 GaussDB-Kernel-V500R001C10-Windows-Odbc.tar.gz 文件,显示如下:

点击 psqlodbc_x86.msi 进行安装:

2. 打开驱动管理器
在配置数据源时,请使用对应的驱动管理器(假设操作系统安装盘符为 C 盘,如果是其他盘符,请对路径做相应修改):
64 位操作系统上进行 64 位程序开发,安装 64 位驱动程序后,使用 64 位的驱动管理器:C:\Windows\System32\odbcad32.exe 或者直接使用 “控制面板> 管理工具 > ODBC 数据源 (64 位)。

3. 配置数据源
在打开的驱动管理器上,选择 “用户 DSN> 添加 > PostgreSQL Unicode (x64)”,然后进行配置:



Data Source:openGauss (数据源名称,可以自定义)。
Database:db_tpcc (需要连接的 Datebase 名称)。
Server:openGauss 数据库服务器的公网 IP,请根据实际情况填写。
Pot:26000 (端口号)。
User Name:joe (连接数据库的用户名,不能使用 omm 用户,需要在数据库中创建)
Password:dbuser 用户的密码,请根据实际情况填写。
4. 验证并保存设置
点击 Test,显示 Connection successful 表示设置成功:

点击保存:


配置成功。
边栏推荐
猜你喜欢

李宏毅老师《机器学习》课程笔记-4.2 Batch Normalization

虚拟机网络连接方式

ArcGIS application (19) ArcGIS statistical analysis and calculation of maximum, minimum and average values of multi band images

阿里云OCR图片识别使用流程

Business topic: user growth analysis

Position coding in self attention mechanism

CREMB Pro 后台子管理员403问题分析

Alibaba cloud OCR image recognition process

Teacher lihongyi's notes on machine learning -5 transformer

Creation of canape can project
随机推荐
Provide artalk services and data hosting for free
Method of canceling automatic numbering
How to check whether an IP address is occupied
Struct in golang
李宏毅老师《机器学习》课程笔记-4.1 Self-attention
网络边缘是什么意思?
ARP (地址解析协议)是什么?
Thoroughly conquer function pointer
Raspberry pie 4B compiling kernel module
excel中如何把文本转换成数值?
WireShark抓包分析
Flink 系例 之 KeyedProcessFunction
Implementation of thread pool
李宏毅老师《机器学习》课程笔记-5 Transformer
Time complexity and space complexity
判斷進程是否有管理員權限
EXCEL中怎样提取部分特定的文本?
There are two ways to convert Las to PCD
Flink 系例 之 TimeWindow
ArcGIS application (XVIII) detailed explanation of display accuracy change of ArcGIS vector layer attribute table