Forum Moderators: coopster

Message Too Old, No Replies

Urgent: Can't connect to MySQL4.1 from PHP4.3.11

Using Apache2 on Windows XP

         

talie

3:43 am on May 31, 2005 (gmt 0)

10+ Year Member



I'm trying to run Apache2, MySQL4.1 and PHP4.3.11 on Windows XP with Service Pack 1, on a machine that has never had these products installed before.

Installing Apache2 and PHP works and runs fine (Apache2 installed to start from Console rather than as a Service). However, when I install MySQL and try and connect to it via PHP I get the error "cannot connect to localhost". (I can connect to MySQL from the Console).

I have verified that the dlls needed and php.ini are in the correct place.

I have removed and reinstalled MySQL in various configurations as a Service, bin in the PATH, etc. Also, in various places including "C:/Program Files/Apache Group/" and "C:/Program Files/MySQL/MySQL Server 4.1/".

I have tried changing the PORT that Apache2 listens to from 8080 to 3306 (MySQL's default port) and now get errors starting Apache2 if MySQL is already running and vice versa.

Initially I started by installing PHP5.0.4 but got the same errors so I removed it and installed PHP4.3.11 instead.

Can anyone help me fix this?

coopster

10:27 am on May 31, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, talie.

It's probably this known issue:

[webmasterworld.com...]