Fratyr Posted May 19, 2009 Share Posted May 19, 2009 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.. :[ Quote Link to comment https://forums.phpfreaks.com/topic/158808-mysqlphp-cannot-execute-mysql-functions/ Share on other sites More sharing options...
Brian W Posted May 19, 2009 Share Posted May 19, 2009 try $db = mysql_pconnect("host", "user", "pass"); Quote Link to comment https://forums.phpfreaks.com/topic/158808-mysqlphp-cannot-execute-mysql-functions/#findComment-837667 Share on other sites More sharing options...
Fratyr Posted May 20, 2009 Author Share Posted May 20, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/158808-mysqlphp-cannot-execute-mysql-functions/#findComment-837882 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.