1.FreeTDS
----------------------------->
freetds-stable.tgz
[root@yezi 2]# tar -xzvf freetds-stable.tgz
[root@yezi 2]# tar -xzvf freetds-stable.tgz -C /toos
也可以加 -C 制定释放到哪个目录
[root@yezi 2]# cd freetds-0.82/
[root@yezi 2]#chmod 777 -R ./
--------------------------------------------------------------------------------------------------------------
这一次我用的文件时最新版本的文件
freetds-0.92.dev.20120124
[root@localhost 3]# vi /usr/local/freetds/etc/freetds.conf
tds version = 8.0
client charset = GBK
这样子查询就是不乱码的了
PHP支持连接mssql2000的编译路径设置
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql/ --with-curl=/usr/local/curl --enable-ftp --with-libxml-dir=/usr/local/libxml2 --with-xsl=/usr/local/libxslt/ --with-gd=/usr/local/gd2/ --with-jpeg-dir=/usr/local/jpeg7/ --with-zlib-dir=/usr/local/lib/ --with-png-dir=/usr/lib/ --with-freetype-dir=/usr/local/freetype/ --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config -with-pdo-mysql=/usr/local/mysql/ --with-mssql=/usr/local/freetds --with-pdo-dblib=/usr/local/freetds