mysql - Export and import database on Git push and pull -


I need to sync my database between two local computers, without interrupting one server. After some research, I thought I could use the Git hook to work for me.

What I basically want to do is to run git push on mysqldump

I could not find any specific hook, and mysqlimport at git drag and from the remote repository For this. I tried hooking up pre-commit , but it did not add the SQL file to the existing file. I then tried ready-made , but without luck.

Has anyone got an answer for this?

This solution uses by Ben Kulbertis to use pre-commit and post-merge git hooks . works like a charm!



Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -