【问题标题】:freetds installed in my centos, how to use this driver with in php我的centos中安装了freetds,如何在php中使用这个驱动程序
【发布时间】:2015-02-08 10:00:38
【问题描述】:

FreeTDS 已安装在我的 Linux 服务器上,我可以在控制台中使用“tsql”连接到 MSSQL Server

现在我的要求是在 PHP 中使用这个驱动来连接远程 SQL Server,

我需要在我的 Centos 服务器上做哪些配置

cat /etc/redhat-release CentOS 6.6 版(最终版)

提前致谢

【问题讨论】:

  • 当 "phpinfo" 没有行说明 mssql # php --info |grep "mssql" PWD => /home/cpeasyapache/src/php-5.4.35/ext/mssql _SERVER[" PWD"] => /home/cpeasyapache/src/php-5.4.35/ext/mssql _ENV["PWD"] => /home/cpeasyapache/src/php-5.4.35/ext/mssql

标签: php sql-server centos freetds


【解决方案1】:

您需要安装 mssql 和/或 pdo_dblib PHP 扩展。您应该能够使用包管理器来安装它们。

【讨论】:

  • 我如何安装 pdo_dblib PHP 你能指导一下吗,这可以从 cPanel UI 中实现吗?
猜你喜欢
  • 2021-02-27
  • 2023-03-28
  • 2018-02-26
  • 1970-01-01
  • 1970-01-01
  • 2021-11-21
  • 1970-01-01
  • 1970-01-01
  • 2015-02-22
相关资源
最近更新 更多