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
https://forums.phpfreaks.com/topic/158808-mysqlphp-cannot-execute-mysql-functions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.