A
A
Alexey Verkhovtsev2017-03-07 17:09:07
MySQL
Alexey Verkhovtsev, 2017-03-07 17:09:07

How to transfer MySql database via git?

Hello everyone, please tell me how to synchronize the database between members of the development team?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2017-04-28
@ilyarsoftware

There are many ways to solve this problem, in general, you can exchange a dump, it is only important to agree on a single way to do a dump, I recommend:

MYSQL_PWD=pass mysqldump \
-uUSER -hHOST \
--compact \
--add-drop-table \
--extended-insert=FALSE \
db_name > dump.sql

This is important to avoid conflicts.
A surer and more reliable way to see what migration options are available in a library or framework your team is using.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question