use mysqldump. if you are not comfortable using the command line, you can use phpmyadmin to export and import data. just remember when you use phpmyadmin to export your database you select the box to also include all your data.
mysqldump References:Copying MySQL Databases to Another Machine
[
dev.mysql.com]
mysqldump A Database Backup Program
[
dev.mysql.com]
Example Backup and Recovery Strategy
[
dev.mysql.com]
phpMyAdmin Wiki ReferencesDumping data
[
wiki.cihar.com]
import data
[
wiki.cihar.com]
export data
[
wiki.cihar.com]