[freetds] cant connect to db

blackwater dev blackwaterdev at gmail.com
Fri Apr 7 23:00:35 EDT 2006


Just to add a bit to this:

I did notice a few differences when running phpinfo relating to the mssql
section:

                Working Code                      Non-Working Code
Library version     7                                  FreeTDS

The non working code's mssql section has more options also. It is php
5.1.2while the working php is
5.0.3.



Thanks.

On 4/7/06, blackwater dev <blackwaterdev at gmail.com> wrote:
>
> I set up freetds on my home linux box and compiled it into php and it
> works fine.  My freetds.conf file is in usr/local/etc/freetds.conf.  I
> then had to set up my production server with my host and compiled
> freetds..it worked.  I then compiled it into php and it worked fine as
> well.  I then took the exact code from my dev box and moved it over and am
> having trouble hitting the mssql db.  The mssql box is hosted remotely so it
> has nothing to do with it being local to my dev box.  My freetds.conf file
> for the production server is in my home directory where I installed freetds
> from.  I tried to make sure that was set up exactly like my conf file from
> the dev server.
>
> Any ideas as to why I would be getting this error:
>
> Warning: mssql_select_db(): Unable to select database:  libland
>
> Again the mssql server is hosted somewhere else so both boxes should be
> able to hit it.
>
> Thanks.
>


More information about the FreeTDS mailing list