You could make some more or less basic php-script for it, like this:
$link = mysqli_connect($host,$user,$pass,$dbname);
$tables = array();
$result = mysqli_query('SHOW TABLES');
while($row = mysqli_fetch_row($result)){
$tables[] = $row[0];
}
foreach($tables as $table)
{
$result = mysqli_query('SELECT * FROM '.$table);
$num_fields = mysql_num_fields($result);
$return.= 'DROP TABLE '.$table.';';
$row2 = mysql_fetch_row(mysql_query('SHOW CREATE TABLE '.$table));
$return.= "\n\n".$row2[1].";\n\n";
for ($i = 0; $i < $num_fields; $i++)
{
while($row = mysql_fetch_row($result))
{
$return.= 'INSERT INTO '.$table.' VALUES(';
for($j=0; $j<$num_fields; $j++)
{
$row[$j] = addslashes($row[$j]);
$row[$j] = ereg_replace("\n","\\n",$row[$j]);
if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
if ($j<($num_fields-1)) { $return.= ','; }
}
$return.= ");\n";
}
}
$return.="\n\n\n";
}
//save file
$handle = fopen('db-backup-'.time().'-'.(md5(implode(',',$tables))).'.sql','w+');
fwrite($handle,$return);
fclose($handle);
Hope this helps you! This code just goes into every table, gets every row and stores it into $return
and after that it writes $return
into a files, which is named just automaticly! You only have to fill in some variables, like the DB-settings and the file properties at the end.