duanjiao7440 2012-02-17 00:13
浏览 41

FreeTDS - Linux服务器问题 - 服务器和SQL管理员都表示它已正确配置

First time user of FreeTDS. It is a "shared hosting" but we are the re-sellers and put in a ticket for them to install and configure it.

Situation: We run a Linux setup ( we'll call them A ) and need to connect to a MSSQL database on a remote server managed by another company. We run a Red Hat variant I'm certain, and they have a Windows Server setup - We'll call them B. So our Admins (A) assure us that they have properly installed and configured FreeTDS. Our Windows guys (B) have assured us they have opened up a port, allowed our IP address and setup remote access and given proper authorization to our account.

Yet, I still get an cannot connect to the database error using mssql_connect. I've gone back and forth with both sides on this and they both, while not blaming me, assure me of proper configuration on their end. I know I'm using the right user name and password, the right port number and proper IP address to the remote server. On top of this, I can telnet in and use fsockopen() to connect to the remote server. So the port is open and the IP unblocked, but I still get the error.

Am I doing something wrong? I'm terribly new to this (windows specifically), but when both 2nd and 3rd parties (As it were) say they are both doing things right, and my side of the deal is as simple as using mssql_connect() with the proper credentials, it makes it difficult. Top it off, the client is pissed that this isn't done yet, and the only explanation I have (due to the other parties having emailed the client saying their end is ok) is to plead that I'm new to this.

The actual error is:

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: xxx.xxx.xx.xxx:1433 in /path/to/file/file.php on line 18 Error connecting to the database

I can't glean any other information - at least by any method I'm aware of.

I should not have taken this job, but is there any advice to be had - things to ask, ways to troubleshoot? I'm at a dead end and any I'll be forever grateful for any help.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
    • ¥20 Java-Oj-桌布的计算
    • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
    • ¥20 有人知道这种图怎么画吗?
    • ¥15 pyqt6如何引用qrc文件加载里面的的资源
    • ¥15 安卓JNI项目使用lua上的问题
    • ¥20 RL+GNN解决人员排班问题时梯度消失
    • ¥60 要数控稳压电源测试数据
    • ¥15 能帮我写下这个编程吗
    • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路