macOS下brew方式安装 1 2 3 4 5 6 7 8 9 10 brew install unixodbc odbcinst -j unixODBC 2.3.7 DRIVERS............: /usr/local /etc/odbcinst.ini SYSTEM DATA SOURCES: /usr/local /etc/odbc.ini FILE DATA SOURCES..: /usr/local /etc/ODBCDataSources USER DATA SOURCES..: /Users/yourname/.odbc.ini
OdbcManager图形界面 http://www.odbcmanager.net/
postgres驱动 https://odbc.postgresql.org/ https://blogs.sap.com/2015/01/22/%E6%80%8E%E6%A0%B7%E5%9C%A8linux%E4%B8%AD%E9%85%8D%E7%BD%AEpostgre-sql-odbc%E8%BF%9E%E6%8E%A5/
1 2 3 4 ./configure make && make install
odbcinst.ini配置 1 2 3 4 5 6 7 [PostgreSQL] Description = ODBC for PostgreSQLDriver = /usr/local/lib/psqlodbcw.soSetup = /usr/local/lib/psqlodbca.soDriver64 = /usr/local/lib/psqlodbcw.soSetup64 = /usr/local/lib/psqlodbca.soFileUsage = 1
odbc.ini配置 1 2 3 4 5 6 7 8 9 10 [PostgreSQL35W] Description = Test to pgDriver = PostgreSQLDatabase = gbdbServername = 127.0 .0.1 UserName = postgresPassword = postgresPort = 5432 ReadOnly = 0 ConnSettings = set client_encoding to UTF8