Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-15-2006, 04:26 AM   #1
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Rep: Reputation: 30
Unhappy mysql_connect(): Lost connection

I'm having a problem connecting one server to another server's mysql installation.

We have servers 1, 2, 3, and 4. 1 contains a database which we've migrated over to 2. Server 2 is already serving database connections for servers 3 and 4, with no issues.

However, when we try and connect via PHP from server 1 to server 2's database (using port 3306) the connection fails with the following:

mysql_connect(): Lost connection to MySQL server during query

Ports are open on both server 1 and server 2, and connecting via telnet is successful.

MySQL is listening on, and `netstat -apn` shows connections established for servers 3 and 4.

The my.cnf file is set up with a high level of user connections, a good amount of RAM allocation for various caches, and timeouts are as default.

Can anyone suggest a reason as to why this might be happening, or some way to track down what the problem might be?


connection, lost, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost connection during installation Factorynl Linux - Newbie 1 05-31-2006 02:58 AM
Lost Connection? Frank Soranno Linux - Newbie 9 04-17-2006 10:04 AM
Lost Connection ? thundersnows Slackware 6 08-14-2003 02:08 PM
lost connection loganwva Linux - Networking 1 04-02-2002 11:44 PM
connection lost toma Linux - Networking 2 09-07-2001 06:49 AM

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration