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 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分