Jump to content

MySQL+PHP - Cannot execute mysql functions


Fratyr

Recommended Posts

Hello, I'm using Apache 2.2, PHP 5.2.9 and MySQL 5.1.34, WinXP 32 SP3, No firewalls, everything configured OK.

Before this, I've used WAMP Server and got the same error.

when I try to output something in HTML, or PHP - Everything works FINE.

 

 

Trying to connect to mysql through command line - works fine.

 

When I use ANY mysql command in PHP, such as $db = mysql_connect("host", "user", "pass");

I get this error in FF3 (same in IE7):

 

Connection Interrupted     

 

The connection to the server was reset while the page was loading.   

 

The network link was interrupted while negotiating a connection. Please try again.

 

That is what apache log error says after i run any mysql command:

[Tue May 19 22:36:20 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-2 configured -- resuming normal operations

[Tue May 19 22:36:20 2009] [notice] Server built: Dec 10 2008 00:10:06

[Tue May 19 22:36:20 2009] [notice] Parent: Created child process 1936

[Tue May 19 22:36:20 2009] [notice] Child 1936: Child process is running

[Tue May 19 22:36:20 2009] [notice] Child 1936: Acquired the start mutex.

[Tue May 19 22:36:20 2009] [notice] Child 1936: Starting 64 worker threads.

[Tue May 19 22:36:20 2009] [notice] Child 1936: Starting thread to listen on port 80.

 

httpd.conf is configured to localhost, php is configured and set up to load mysql library, the libraries located in php dir, also placed them in system32, system.. Dunno why, I've heard it may help.

 

Dunno what else can I do.. I need help. I just want to set up a development server for me.. :[

Link to comment
Share on other sites

That was close. I mean, incredible solution, It worked.

But just for my own, why can't i use regular connection? And If I don't want to use persistent connections in my applications?

 

Thanks in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.