MySQL Forums
Forum List  »  PHP

MySQL+PHP - Cannot execute mysql functions
Posted by: Fratyr Metus
Date: May 19, 2009 02:04PM

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.. :[

Options: ReplyQuote


Subject
Written By
Posted
MySQL+PHP - Cannot execute mysql functions
May 19, 2009 02:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.