Re: Cannot connect to MySQL with PHP 4.1.1

From: Date: Fri, 15 Mar 2002 05:54:52 +0000
Subject: Re: Cannot connect to MySQL with PHP 4.1.1
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-12647@lists.php.net to get a copy of this message
Hi, I recently installed php from php.net on Win 2000 with IIS 5 with mysql. Its running without a hitch. I had to install MyODBC also from the mysql site. Regards, Arijit "Nicole Amashta" <430ntr3k@bellsouth.net> wrote in message news:20020301152937.54199.qmail@pb1.pair.com... > Are you sure you are using a complete new install of PHP? Remove all old php > files ( dlls, ini, etc) and install completely fresh to make sure you are > using all the versions that go with the version of PHP you are wanting to > use (eg. 4.1.1). > > Nix > www.aeontrek.com > > > "Egil Helland" <egil@egil.net> wrote in message > news:20020301140822.DRWQ355.mta02@workhorse... > Just another little note here: > > I have tried every version from 4.0.4 pl1 and upwards. The only > version I get to work i 4.0.4 pl1. This also includes the latest > development version (4.3.0-dev) available. > > Whatever happened after the 4.0.4 release? I can switch back to this > release, and everything starts working again right away! > > -e > > On Fri, 1 Mar 2002 14:31:18 +0100, Egil Helland wrote: > >I actully use the $link = part, I just did not include it below. The > > MySQL daemon is there allright, I am hooked up to it now in fact, > >but php is not able to do the same! > > > >This is no problem with IIS, this is pure php + mysql, that I am > >pretty sure of. I have seen loads of others with similar problems, > >some running apache, some iis, some running on unix! Dont know what > >cause this still, so any help is appreciated! > > > >-e > > > >On Fri, 01 Mar 2002 11:36:07 +0000, Pac mon wrote: > >>Well i'd suggest triple checking that mysqld is running. Uh.. try > >>putting: $link = mysql_connect(....) or die(....); > >>Just small things, but maybe it'll work.. other than that... No.. > >>i've never had a problem with mysql, but then again i'm running > >>apache..not IIS. > >> > >> > >>----Original Message Follows---- > >>For some reason, after I upgraded to 4.1.1, I am not able to > >>connect to MySQL DB sources anymore. AFAIK I have set up the ini > >>file like I should, there are no differences in the IIS config > >>since the 4.0.5 version I have been running here was installed. > >> > >>Anyone familiar with this? I have seen hundreds of these errors all > >>over the web, but I have not found a solution to the problem yet. I > >>am tired of searching around the web for something that is probably > >>trivial :) > >> > >>I have not upgraded my MySQL install, only php. The codeline that > >>does not get through is: > >> > >>mysql_connect($host,$user,$password) or die ('Could not connect'); > >> > >>The output I get is: > >> > >>Warning: Can't connect to MySQL server on 'localhost' (10061) in > >>************ on line 77 > >> > >>Warning: MySQL Connection Failed: Can't connect to MySQL server on > >>'localhost' (10061) in ************* on line 77 Could not connect > > > -=// > Egil Helland / IKON AS - MCSE, Internet, Intranet > mailto:egil@egil.net > http://egil.net > file://=- > > > >

« previous php.windows (#12647) next »