473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 2341
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

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

Similar topics

2
by: David | last post by:
I've looked all over the place for an answer, and the only one I can find doesn't mean anything to me. The end of line issue with writting it in Windows and then uploading it doesn't help me since...
2
by: Adlai Stevenson | last post by:
Ok, the good news is the last kernel upgrade made bzflag stop working. The bad news is that mplayer, ogle and real player stopped working ! Is anybody in a similar boat? I am using Suse 9.1...
0
by: Adrian Stovold | last post by:
I've written an ASP.NET application in VB.NET. It works fine on all Windows platforms and browsers, but there's a problem on the Mac version of IE (v5.1.5) running on Mac OS 9.2. I can reproduce...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
7
by: z f | last post by:
Hi, i have a vb.net web application that uses validators. on my dev machine (Xp pro) it works fine. on the hosting machine (win2003) the validator (client side and server side ) stop working....
2
by: chrisexv6 | last post by:
Recently been having an issue pop up with a web service thats been running fine for months. The service in question takes calls from our public web server, then logs data to a database server...
3
by: lds | last post by:
On our server we have both applications that have been migrated to use v2.0 of the framework as well as apps that have not yet been migrated and still use 1.1. When I tried to deploy my v2.0 app...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
4
by: Adam Tippelt | last post by:
Situation: I'm using a continuous form to display a lot of information stored in a datasheet. I'm using the form because it allows me to display multiple rows of information per 'record' which is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.