I had a similar problem. One day, all of a sudden, I couldn't use my mysql
functions unless I omitted the db link identifier. Function calls like:

mysql_query($sql, $conn)

will not work for me unless I omit $conn, letting the functions assume the
last connection made to the db:

mysql_query($sql)

I don't think I was getting the same error message you were though. Has
anyone else had this strange problem? Thanks.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-----Original Message-----
From: Egil Helland [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Cannot connect to MySQL with PHP 4.1.1


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:[EMAIL PROTECTED]      http://egil.net
                                                        //=-



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to