Solved

how to make double connection with mysql replication

Posted on 2010-09-01
7
412 Views
Last Modified: 2012-05-10
i have two network carts
one extern and an other intern.
When i try to make a connection with both of them on
then the connection with mysql server fails.

Problem in detail:

I have two network connections with two different networkcards.
one network card is extern meaning it makes a connection with an extern server
this works fine, but when i enable the other network card which supposed to make
a connection with the internal server then the connection with mysql server terminates.
i have a mysql master-slave replication connection where the master server is extern.
and the slave is internal.
0
Comment
Question by:marcwes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 

Author Comment

by:marcwes
ID: 33575064
sorry i forgot to say this.
when i enable the internal card, meaning the network card which makes connection between the server and other internal server. then the mysql replication fails.
0
 

Author Comment

by:marcwes
ID: 33575242
i will rephraze the question again to make it clearer because i saw that it is not clearly explained.

The problem is the following.

I have a mysql replication between a master and a slave.
on the server there are two network cards.
one network card makes connection with an external server
on this external server there is the master server.

on another server there is the mysql slave server
the connection between my server and the other server is through
a second network card which is internal
when i enable the connection then the replication fails

it has something to do with routing i think, but i am not sure

any ideas ???

kind regards
0
 

Expert Comment

by:ee_webmad
ID: 33575328
Hi, try connecting directly from the slave to the master server through mysqlclient
(i.e. mysql -u root -p -h masterserver) in order to verify if there are routing issues.
Also check on the master server if MySQL is listening on any interfaces (netstat -na | find "3306" on Windows platforms).

Bye,
-Pietro.
0
Webinar: MongoDB® Index Types

Join Percona’s Senior Technical Services Engineer, Adamo Tonete as he presents “MongoDB Index Types, How, When and Where Should They be Used?” on Wednesday, July 12, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7).

 

Author Comment

by:marcwes
ID: 33575623
the connection works fine

but when i start the local or internal network card then the connection to the master mysql server
fails

do you think that it has something to do with routing??
0
 

Author Comment

by:marcwes
ID: 33575735
you are right the connection does not work
when i enable the internal network card
it states that the host is unkown

what should i do ?
0
 

Accepted Solution

by:
ee_webmad earned 500 total points
ID: 33581636
For example, if your "internal network card" is just used for communications between master and slave mysql servers, you don't need a default gateway on that interface.
But it's better you to post more informations about your network configuration for both master and slave servers:
IP address, subnet mask, default gateway and DNS server address.

0
 

Author Closing Comment

by:marcwes
ID: 33584574
We alter the Gateway of the external network card
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question