安装驱动:
1 | yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm |
TODO 离线包
配置 /etc/odbcinst.ini
1 | [PostgreSQL] |
测试连接:
1 | isql -v -k 'DRIVER={PostgreSQL};SERVER=192.168.2.181;PORT=15432;UID=abcdu;PWD=123456;DATABASE=test;' |