You can use mysqldump to create a simple backup of your database using the following syntax.
mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]
To Restore
mysql -u [username] -p [password] [database_to_restore] < [backupfile]