[freetds] can't connect

Simon Matthews sam at knowledgepool.com
Tue Mar 8 12:35:11 EST 2005


Have you checked what port SQL server is running on.  Can you telnet from
the Linux box to the SQL server port on the database machine?

S


> -----Original Message-----
> From: Chris parent [mailto:kireol at yahoo.com] 
> Sent: 07 March 2005 20:22
> To: freetds at lists.ibiblio.org
> Subject: [freetds] can't connect
> 
> 
> Hi all.
> 
> I ran into a bit of trouble.  I've been running
> freetds fine for a few months.Over the weekend, our
> server room lost power.  So our Windows (sql server)
> and Linux (php dev box including freetds) both went
> down and rebooted.  So I started everything back up
> (yes, I'm the developer and the sys admin hehehe)
> 
> now my php isnt connecting.  
> ------------------------------------------------------
> $conn =
> mssql_connect('server','abstract\mylogin','mypass');
> 
> mssql_connect(): Unable to connect to server: server
> in /var/www/html/getfile.php on line 21
> ------------------------------------------------------
> 
> however, tsql is connecting just fine.
> ------------------------------------------------------
> tsql -S server -U 'abstract\mylogin' -P 'mypass'
> ------------------------------------------------------
> 
> I'm racking my brain trying to figure out why this
> thing isn't running.  Any ideas?  everything else
> appears to be running just fine on my box.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org 
> http://lists.ibiblio.org/mailman/listinfo/free> tds
> 


More information about the FreeTDS mailing list