"blind leading another blind" ;-) Hi, i am a not-a-total-newbie myself - so here comes nothing...
See if you get the same result (errors) when you use the local computer's real IP address or the localhost IP "127.0.0.1" instead of "localhost" in your mysql_connect(). Don't ask me if this solve it, but try - it might help. :-)´ "A. Bacon" wrote: > Hi...I'm new to php and mysql so please bear with me. I am having a > problem connecting to mysql through php. If I go into the mysql > monitor, the username and password that I set up are present in the user > db, and my scripts using $connection = mysql_connect("localhost", > "myusername", "mypassword"); have sometimes connected me, but sometimes > I get cutoff at the past with this: > > Warning: MySQL Connection Failed: Can't connect to MySQL server on > 'localhost' (10061) in c:\program files\apache > group\apache\htdocs\db_connect.php on line 3 > > I'm using Meloni's "PHP - Fast and Easy" as my reference tool. I've got > Apache1.3.12 running on win95. > > Any help would be greatly appreciated...Tonloc -- Michel Laine -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]