?使用ODBC远程连接HGDB数据库
一、ODBC安装
1)UnixODBC安装
#?yum安装 #?验证安装 |
?2)PostgresqlODBC安装
# yum安装 # 验证安装 |
二、ODBC配置
1)查看odbcinst
# cat /etc/odbcinst.ini [PostgreSQL] Description = ODBC for PostgreSQL Driver????? = /usr/lib/psqlodbcw.so Setup?????? = /usr/lib/libodbcpsqlS.so Driver64??? = /usr/lib64/psqlodbcw.so Setup64???? = /usr/lib64/libodbcpsqlS.so FileUsage?? = 1 |
2)配置odbc
# vim /etc/odbc.ini [HGDB] Description = Test to HGDB Driver = PostgreSQL Database = highgo Servername = 192.168.80.126 UserName = highgo Password = password Port = 5866 ReadOnly = 0 ConnSettings = set client_encoding to UTF8 |
3)验证odbc
#?isql访问 +---------------------------------------+ |
更多详细信息请登录【瀚高技术支持平台】查看https://support.highgo.com/#/index/docContent/95ef7c98012e8cf9