MySQL provides several methods for backing up and restoring databases, including the use of mysqldump, which is a command-line tool. To back up a database, you can use the command mysqldump -u username -p database_name > backup.sql. To restore a backup, you can use the command mysql -u username -p database_name < backup.sql.