It’s always good policy to backup all your files and databases whether you are running updates or making system changes, or simply just want a backup for safekeeping.
mysqldump -v -u [username] -p [database_name] > [backup_filename.sql]
mysql -v -u [username] -p [database_name] < [restore_filename.sql]
The -p switch will prompt you for you MySQL password. In case you have forgotten your MySQL password like I did, you can see my previous post for instructions on how to reset your MYSQL password.