LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-15-2006, 05:26 AM   #1
neocookie
Member
 
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 0.0.0.0:3306, 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?
 
  


Reply

Tags
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 03:58 AM
Lost Connection? Frank Soranno Linux - Newbie 9 04-17-2006 11:04 AM
Lost Connection ? thundersnows Slackware 6 08-14-2003 03:08 PM
lost connection loganwva Linux - Networking 1 04-03-2002 12:44 AM
connection lost toma Linux - Networking 2 09-07-2001 07:49 AM


All times are GMT -5. The time now is 11:51 AM.

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