Depending on database size, that't probably the best way.

Otherwise, you could export/import from the old to the new.