0%

MacOS X 使用php连接sqlsrv

MacOS X使用php程序访问sqlsrv需要对环境进行以下处理

  1. 安装homebrew不赘述
  2. 添加sqlsrv的工具包
    1
    2
    3
    brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
    brew update
    brew install msodbcsql17 mssql-tools
  3. 安装php扩展
    1
    2
    pecl install sqlsrv
    pecl install pdo_sqlsrv
  • Post author: hainuo
  • Post link: mac_os_x_php_sqlsrv
  • Copyright Notice: All articles in this blog are licensed under BY-NC-ND unless stating additionally.