The aim:
During development I want to dump MySQL tables in a format suitable for input to a version control system (Thanks Nick).
Plain mysqldump outputs all the data on one line, and there will be changes to the table structure along the way as well, so I am thinking that what I want is:
To be honest, before we even talk about version control, being able to do a diff at the (bash) command line would be rather useful.
I came across this blog entry, but it relates to MySQL 4.n and I'm now on 5.1.42.
I have a FreeBSD web server and OS X as a client (also with MySQL) to go at.
As a sanity check, am I going in the right direction here?
During development I want to dump MySQL tables in a format suitable for input to a version control system (Thanks Nick).
Plain mysqldump outputs all the data on one line, and there will be changes to the table structure along the way as well, so I am thinking that what I want is:
- a dump of the table structure
- a dump of the data with one line per record
To be honest, before we even talk about version control, being able to do a diff at the (bash) command line would be rather useful.
I came across this blog entry, but it relates to MySQL 4.n and I'm now on 5.1.42.
I have a FreeBSD web server and OS X as a client (also with MySQL) to go at.
As a sanity check, am I going in the right direction here?
Comment