[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

how to make double connection with mysql replication

Posted on 2010-09-01
7
Medium Priority
?
419 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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 1500 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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