免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2497 | 回复: 2
打印 上一主题 下一主题

安装iODBC出问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-07-24 21:54 |只看该作者 |倒序浏览
我安装了PostgrSQL,使用正常.
想实验iODBC,安装libiodbc 3.51.2和pgsqlodbc 7.3.0200
/etc/odbc.ini如下:

  1. [ODBC Data Sources]
  2. PgSQL = PostgreSQL ODBC Driver

  3. [PgSQL]
  4. Driver = /usr/local/lib/psqlodbc.so
  5. Description = PostgreSQL Data Source
  6. DSN = PgSQL
  7. Servername = localhost
  8. Port = 5432
  9. ;Socket = 4096
  10. Protocol = 7.2
  11. UserName = ldap
  12. Password = 1234
  13. Database = pg_ldap
  14. ReadOnly = no
  15. ServerType = Postgres
  16. FetchBufferSize = 99
  17. ServerOptions =
  18. ConnectOptions =
  19. ;Options = 3
  20. Trace = 0
  21. TraceFile = /var/log/PostgreSQL_test_trace.log
  22. Debug = 0
  23. DebugFile = /var/log/PostgreSQL_test_debug.log

  24. [Default]
  25. Driver = /usr/local/lib/psqlodbc.so
  26. Description = PostgreSQL Data Source
  27. Server = localhost
  28. Port = 5432
  29. UserName = ldap
  30. Password = 1234
  31. ;Socket = 4096
  32. ;end odbc.ini
复制代码


使用iodbctest测试的时候,输入DSN=PsSQL后程序再无响应.
不知何解?

论坛徽章:
0
2 [报告]
发表于 2004-07-25 21:03 |只看该作者

安装iODBC出问题

/etc/services里有没有5432端口? 还有PG的访问授权是否设置正确?

论坛徽章:
0
3 [报告]
发表于 2004-07-26 12:17 |只看该作者

安装iODBC出问题

PostgrSQL使用正常,so my pg_hba.conf should be correct.
I did't modify my /etc/services, but i'm not sure if it can help me. I'll try it tonight.

Thank you, however.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP