A
A
Artur Smirnov2013-01-28 05:51:29
MySQL
Artur Smirnov, 2013-01-28 05:51:29

MySQL Data Replication

There is a master and slave DBMS.
Master is located in the internal network, behind the Internet modem, i.e. without external IP (and I don’t consider port forwarding from the modem).
Slave, in turn, is located on a dedicated server with a permanent IP and Internet domain.
Question how to make replication?
Now done through an internal application that actually POSTs data through a Web service on the slave's
server

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
KEKSOV, 2013-01-28
@wisd

The tailless option is an OpenVPN tunnel from the computer where the master is running to the computer where the second server is running. Then they will be in the same private network and see each other directly by IP address

E
EugeneOZ, 2013-01-28
@EugeneOZ

Transfer master from under the table to foreign hosting - it will be safer and much easier.

S
subvillion, 2013-01-28
@subvillion

It doesn't depend on the version of MySQL, that's the technology. You need a static ip and port for stable data replication.
Crutches:
1. Forward the sql port from the master to the localhost slave via ssh (do not shine the port through the modem, but tunnel it directly to the server)
2. Configure ipv6 ipv4 encapsulation

S
stavinsky, 2013-01-28
@stavinsky

For a start it would be desirable to hear the purpose of replication.
Backup, load balancing?

S
stavinsky, 2013-01-28
@stavinsky

It's just that the rsnik will not merge online, that is, it will be marks once every 5 minutes, for example. But in principle, if there is not much data - a normal option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question