简体   繁体   English

MySQL复制多主服务器,具有动态IP到单个从服务器

[英]MySQL replication multi-master with dynamic IPs to single slave

So I have a collection of data gathering devices that run MySQL and OpenVPN. 因此,我有一组运行MySQL和OpenVPN的数据收集设备。 The OpenVPN runs in either TCP or UDP, but not both and uses different subnets for each and the mode can switch based on availability. OpenVPN在TCP或UDP中运行,但不能同时在两者中运行,并且为每个VPN使用不同的子网,并且该模式可以根据可用性进行切换。 In MySQL 5.7, multi-master replication requires a static IP address. 在MySQL 5.7中,多主复制需要一个静态IP地址。 This is not a problem if the IP addresses didn't change on the devices, but they do. 如果设备上的IP地址没有更改,但是IP地址不变,这不是问题。

How can I make MySQL multi-master replication work with an indeterminate master address? 如何使用不确定的主地址使MySQL多主复制工作?

You can assign static IP addresses based on certificate CN's: http://michlstechblog.info/blog/openvpn-set-a-static-ip-address-for-a-client/ 您可以基于证书CN分配静态IP地址: http : //michlstechblog.info/blog/openvpn-set-a-static-ip-address-for-a-client/

I believe that it also should work on user/password authentication... 我相信它也应该适用于用户/密码验证...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM