LINUX centos 7 连接mssql 提示PHP Warning: mssql_connect() Unable to connect to server
解决方法:查看freetds.conf 文件的连接SQL SERVER版本所设置的连接名称:
- [ser2008]
- host = 192.168.0.1
- port = 1433
- tds version = 8.0
红字连接名称是你写php函数 mssql_connect(“ser2008”,"sa","123456")。
如果换成IP地址连接mssql_connect(“192.168.0.1”,"sa","123456")会报错.