1 頁 (共 1 頁)

ubuntu 16.04 php 7.1 add sqlsrv

發表於 : 2019-10-08 22:00:58
yehlu

代碼: 選擇全部

sudo apt install php-pear
sudo apt-get install php7.1-dev
sudo apt-get install unixodbc-dev
sudo apt-get install php7.1-sybase
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
/etc/php/7.1/cli/conf.d

代碼: 選擇全部

ln -s /etc/php/7.1/mods-available/sqlsrv.ini 20-sqlsrv.ini
ln -s /etc/php/7.1/mods-available/pdo_sqlsrv.ini 20-pdo_sqlsrv.ini
https://docs.microsoft.com/zh-tw/sql/co ... erver-2017
https://packages.microsoft.com/ubuntu/1 ... odbcsql17/

代碼: 選擇全部

wget https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/m/msodbcsql17/msodbcsql17_17.4.2.1-1_amd64.deb
dpkg -i msodbcsql17_17.4.2.1-1_amd64.deb