create mysql database backup using mysql command line code example Example: mysql backup database mysqldump database_name > database_name.sql