If this is recommended ?
Can I ask some git command examples about how to track versions of mysql schema?
Should we use another repository other then the on
I have found the following options to be mandatory for a version control / git-compatible mysqldump.
mysqldump --skip-opt --skip-comments |sed -e 's/DEFINER[ ]*=[ ]*[^*]*\*/\*/'
(and maybe --no-data
)
--skip-opt
is very useful, it takes away all of --add-drop-table --add-locks --create-options --disable-keys --extended-insert --lock-tables --quick --set-charset
. The DEFINER
sed is necessary when the database contains triggers.