468,290 Members | 1,954 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

Why does mysql_connect() keep causing Apache 2.2 to stop working?

I have recently installed MySQL on my laptop on which I am working on locally. I have php5 and MySQL Server 5.1. I am using Windows Vista SP2 with Apache 2.2.

When I try to run the function mysql_connect() the connection seems to wait for the localhost for a while (30+ seconds) before it eventually gives up and I get the error message: "Apache HTTP Server stopped working and was closed"
By diagnosing why the page didn't load through windows I get this report: " 'localhost' is not set up to establish a connection on port 'World Wide Web (HTTP)' with this computer'";
I have tested mysqld through the command prompt and know it is alive from the ping command.

Please help!

12344321
May 7 '10 #1

✓ answered by Markus

See if this helps.

5 2084
Markus
6,050 Expert 4TB
What PHP version are you using? I'm looking for information on this problem, though I'm not finding much.
May 7 '10 #2
Markus
6,050 Expert 4TB
See if this helps.
May 7 '10 #3
It is Version 5.2.9-1 (according to phpinfo()).
May 7 '10 #4
Wow!! That worked! All I had to do was copy and paste "libmysql.dll" into the Apache bin folder and it seems to be fine. I'll let you know if I have any further problems with the installation.
Thank you! :)

12344321
May 7 '10 #5
Markus
6,050 Expert 4TB
Haha. That's pretty awesome :)

Be sure to return if you have any programming issues.
May 7 '10 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by David | last post: by
2 posts views Thread by Adlai Stevenson | last post: by
2 posts views Thread by Martyn Fewtrell | last post: by
7 posts views Thread by z f | last post: by
2 posts views Thread by chrisexv6 | last post: by
5 posts views Thread by Guillermo Antonio Amaral Bastidas | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.