• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

how to make double connection with mysql replication

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
marcwes
Asked:
marcwes
  • 5
  • 2
1 Solution
 
marcwesAuthor Commented:
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
 
marcwesAuthor Commented:
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
 
ee_webmadCommented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
marcwesAuthor Commented:
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
 
marcwesAuthor Commented:
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
 
ee_webmadCommented:
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
 
marcwesAuthor Commented:
We alter the Gateway of the external network card
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now