dpv21589 2012-06-15 12:29
浏览 65
已采纳

使用FreeTDS的Drupal7 + SQL Server的配置是什么?

we already have a Moodle installation working in this scenario: linux + php5 + freetds + sql server.

but we just can't figure out how to link drupal 7 to sql server in the same manner.

what configs should we use? anyone ever tried this?

drupal simply does not show up in the available databases list.

note: we are already able to connect php to sql server using freetds, but just can't figure out how to do this on Drupal 7.

  • 写回答

2条回答 默认 最新

  • dpqaaczn141761 2013-01-31 14:46
    关注

    You can't use sqlsrv module on Linux because it requires PDO_SQLSRV driver that works only on Windows (see this comment)

    To use FreeTDS you will need to write a Drupal Database Driver by yourself (similar with sqlsrv). Or don't use the database abstraction layer at all and do the call by yourself inside your module (if you only need MS SQL for parts of you project.

    The good news (I hope) is that you can install dblib driver (in Ubuntu: sudo apt-get install php5-mssql) and use the sandbox project. A little info regarding this sandbox projects you can find in author's comment here. How to use it in you settings.php file can be seen here.

    dblib database support in Drupal is still experimental, so test it before using it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)