MySQL Forums
Forum List  »  PHP

PHP & MySQL: Connection Lost
Posted by: Gary Chu
Date: June 14, 2005 09:21AM

Hi all,
I am running MySQL and PHP on a Debian box. The Debian version is 3.1, MySQL 4.0.24, PHP 4.3.10-15. Whenever I tried to connect to mysql using PHP, I got the message saying "Lost connection to MySQL server during query in xxxx on line x". Not even when I use one single sentence "mysql_connect("", "root", "passwd");" The MySQL and apache are on the same machine and I can use mysql without any problem. I also checked the MySQL uptime, no server crash. The log file in /var/log doesn't say anything either. So what do you think the problem might be? Thanks!

Options: ReplyQuote

Written By
PHP & MySQL: Connection Lost
June 14, 2005 09:21AM

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.