I use the WordPress Database Backup plugin. Convenient, and it actually does exactly what is supposed to.

When I change domain names, I rebuilt my WordPress installation from scratch. The database – including plug-in settings and such – imported flawlessly.