2
when you dump the DB (using phpmyadmin)
there's a tickbox to dump the db in mysql4.0 compatibility, if you tick that box before dumping, you should be able to restore to an older version..
i'm not sure with commandline functions, but i would presume that somewhere there would be an option for compatibility..