mysql-dump-split
mysql-dump-split copied to clipboard
Ruby script that splits a MySQL dump into a file per table.
Hi there. I made a gem out of your script. When doing so I also split it to functions and such so it is easier to understand and somewhere more...
Catch errors thrown from Dir.mkdir. The script died for me because directories already existed. This helped. I haven't investigated why I had several "Current Database" for the same database, so...
Currently data-only dumps are not supported. Table dumps match `if line =~ /^-- Table structure for table .(.+)./ or line =~ /^-- Dumping data for table .(.+)./` This, combined with...