Solved

how to make double connection with mysql replication

Posted on 2010-09-01
7
369 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now