Re: Cannot connect to MySQL with PHP 4.1.1
| From: | Nicole Amashta | Date: | Fri, 01 Mar 2002 15:17:51 +0000 |
| Subject: | Re: Cannot connect to MySQL with PHP 4.1.1 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12382@lists.php.net to get a copy of this message | ||
This may sound silly, but, make sure MySQL is running and that you can
connect from the command prompt.
? Other than that, I dont know because I am still using 4.0.6.
Good luck with it, and post back when you figure it out! I'd like to know.
Nix
www.aeontrek.com
"Egil Helland" <egil@egil.net> wrote in message
news:20020301101355.DEIW355.mta02@workhorse...
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
Regards,
Egil
-=//
Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:egil@egil.net http://egil.net
file://=-