linux装sqlserver

代码 · 2023-03-09 · 179 人浏览
wget http://pecl.php.net/get/pdo_sqlsrv-5.6.0.tgz
tar -zxvf pdo_sqlsrv-5.6.0.tgz
cd pdo_sqlsrv-5.6.0
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install
echo "extension = pdo_sqlsrv.so" >> /www/server/php/73/etc/php.ini
/etc/init.d/php-fpm-73 reload
/www/server/php/73/bin/php -m|grep -i  sqlsrv
Theme Jasmine by Kent Liao