Solved

how to make double connection with mysql replication

Posted on 2010-09-01
7
407 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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