Hi,
here is IMO a MySQL (at least 4.0.20) bug, but maybe we could put a workaround in the export logic.
If the last exported table has no data, the export file ends with those ANSI-style comments:
-- -- Dumping data from table table1 --
and MySQL gives an error on this!
No problem if the file ends with MySQL-style comments.
Marc