douwu7168 2016-09-09 14:13
浏览 138

ODBC驱动程序/ FreeTDS

I am migrating a PHP website that connects to an external MSSQL database. The new server is a Linux server. I know to get this to work I will need an ODBC driver for Linux, like these:

  • FreeTDS
  • Microsoft's ODBC driver for Linux.

My question is, do I need both or can I get this to work with just one of them?

  • 写回答

1条回答 默认 最新

  • douzhanbai9526 2016-09-09 15:19
    关注

    You will only need one ODBC driver, which might be one of those you list, or might come from another source such as those from my employer.

    The ODBC driver must match bitness with your PHP binary (whether that's the standalone executable, mod_php as used with Apache, or otherwise), and you'll generally be best off if you also have an ODBC driver manager (e.g., iODBC, unixODBC).

    If you get pre-built binaries for any of these components, note that they must be compatible with the libc in your environment, which may mean that you need to add a compatibility library (for instance, binaries built for libc 2.5 need a compatibility library to be used in a libc 2.12 environment).

    评论

报告相同问题?

悬赏问题

  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用