There is no default mechanic for moving your data between databases, it's up to the end-user to migrate the data. This is usually possible between different database types though the built-in database (hsqldb) is usually just used for quick testing and as such does not provide a whole lot of options for migrating data, though I'm sure it's possible.
Perhaps you can use the 'MySQL Migration Toolkit'.