Many thanks for your help all, I found the best way was to export as a pipe delimited file and import through phpmyadmin.
But that doesn't stop me wanting a script to do it all for me without the export/import hassle, so if anyone feels up to doing one - I'll buy that!
Kevin