LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2007, 10:25 PM   #1
ltchong
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Lost connection in remote mysql access


Hi,

I keep getting the following error when I try to remotely access the MySQL database on a server (SUSE Enterprise Linux 10):
mysql -h xxx.xx.xxx.xx
ERROR 2013 (HY000): Lost connection to MySQL server during query

MySQL is definitely running on that server as well as the server I'm using to remotely access the database. If I type "ps auwx | grep mysql" on either server, I get the following:
root 22603 0.0 0.0 8188 1496 ? S Oct15 0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.sock --datadir=/var/lib/mysql
mysql 22647 0.0 0.2 116744 21656 ? Sl Oct15 0:07 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-external-locking --port=3306 --socket=/var/lib/mysql/mysql.sock

I have also uncommented out the "--skip-networking" option in the /etc/my.cnf file. There is no firewall running on either machine. Is there anything else that I should be checking?

Any suggestions would be very much appreciated!

Lillian
 
Old 10-27-2007, 11:15 AM   #2
ltchong
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I found the solution to my problem. In my /etc/hosts.deny file, I had the line "ALL:ALL". So I had to add the line "mysqld: xx.xx.xxx.xx: allow" to my /etc/hosts.allow file. Hopefully, this will help someone else out, too.

Lillian
 
  


Reply



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 root access in MySQL telakenesys Linux - Software 9 02-23-2011 04:48 AM
lost ssh access of remote machine RHEL4..How to get it back? dsids Linux - Networking 12 07-28-2006 06:51 AM
Lost connection to MySQL server during query figure8car Mandriva 1 12-05-2004 04:28 PM
Mysql Error: Lost Connection to Mysql during query ramnath Programming 5 11-18-2003 12:27 PM
lost remote connection thedude2010 Linux - Networking 5 10-17-2002 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration