LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-22-2014, 02:09 AM   #16
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233

The telnet approach in http://www.linuxquestions.org/questi...4/#post5102200 shows that the mysql server can be reached. So it must be something else. Also the access tables are fine.

MAybe just to make sure: create a new database, create a new user with explicit ip settings thats only allowed to access that db, try to connect. The ip should be of the host that has the problem.
 
Old 01-22-2014, 03:40 AM   #17
romagnolo
Member
 
Registered: Jul 2009
Location: Montaletto
Distribution: Debian GNU/Linux
Posts: 107

Original Poster
Rep: Reputation: 5
Solved!

I considered the hypothesis of a dumb NAT which couldn't support more than one connection per source/destination pair, so I opened two concurrent instances of mysql-client on a generic VM (as in diagram), but they worked fine. Also I disabled the slave MySQL server, then rebooted the DSL 'router', but still from the slave host I couldn't reach the master.

Then I tcpdump-ed the client, just to find that it was dialoguing in "full duplex" with master, so there didn't appear to be a connection block along the chain.

Finally, I spotted an odd inconsistency within slave's /etc/mysql/my.cfn, which was:
Code:
[client]
port            = 3307
socket          = /var/run/mysqld/mysqld.sock
so the cmd-line client launched from the slave host was attempting to reach the master from a nonstandard port, hence got rejected without much eloquent explanation, requiring wild guesses.

The port was so configured a long while ago to allow another instance of MySQL to run on a different VM within the same OpenVZ host. AFAIR the MySQL instances were in port conflict, even if they run on separate VMs.

Last edited by romagnolo; 01-22-2014 at 03:42 AM.
 
  


Reply

Tags
debian, mysql5, openvz, replication



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
access remote mysql db with mysql-administrator command uppalagayatri Linux - Newbie 4 05-13-2011 02:22 AM
[SOLVED] mysql remote access unkie888 Linux - Software 1 02-12-2011 12:55 AM
MySQL odbc connection remote client keirvt Linux - Server 4 07-29-2010 11:28 PM
[nfs] remote client do not have write access davidshen84 Linux - Software 2 02-23-2009 09:28 AM
NFS client : username specific access srilinux Linux - Server 1 11-18-2007 11:51 AM

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

All times are GMT -5. The time now is 11:53 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