When migrating a server, do not lose MySQL data. Is it possible to create a Master-Master?

I am moving to a new server, and thinking about how to store my 2 MySQL data in a database leads to the fact that I lose both sleep and hair. I was thinking about using the Master-Master setting so that I would not lose anything in this process. How viable it is. Any potential errors?

+3
source share
1 answer

Why does the old server ever need to know the data written to the new server? For this reason, make the master-slave setting.

, .. , , .

(), , .

, 1 -. , :

DNS , .

:

  • old.example.org - .
  • new.example.org - .
  • www.example.org - CNAME old.example.org.

, :

  • .
  • www.example.org CNAME new.example.org
  • old.example.org -, new.example.org.

, URL- new.example.org . DNS , www.example.org.

.. .. MySQL. , , mysql ; , , .

+1

Source: https://habr.com/ru/post/1726996/


All Articles