I'm preparing to implement some mysqldump-based backups, and would
really like to find an easy way to dump out one SQL file per table,
rather than single massive SQL file with all tables from all
databases.

In other words, if I have database DB1 with tables TBL1 and TBL2, and
database DB2 with tables TBL3 and TBL4, I'd end up with files named
something like this, containing just the table create and data for
each:

20060707.DB1.TBL1.sql
20060707.DB1.TBL2.sql
20060707.DB2.TBL3.sql
20060707.DB2.TBL4.sql

This would make selective restores a lot easier, and would also allow
us to set up development/testing environments more easily than one big
file.

I'd use mysqlhotcopy but we're in an InnoDB environment.

I can implement this with a little perl script but wondered if anyone
was aware of a tool out there already?

Dan

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to