Answer the question
In order to leave comments, you need to log in
How to synchronize MySQL DB between two servers?
There are sites on Bitrix, they are developed on one server, and go to production on another server, git is used for files. What could be a DB solution? Because in the admin panel on the development server, content can pile up, and on the production server too, how can I glue it together then? Thank you.
Answer the question
In order to leave comments, you need to log in
If you need to synchronize tables / links (do not pull data from the dev. database), then I advise you to make a .sql script to create tables in the database, etc. and commit it to git.
To automate the synchronization process, I advise you to write a small script that will once a day (for example) execute scripts from a file.
back up the production base and periodically restore the development base from these backups.
And what is crammed into the developer base, do you really need it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question