mysqldump is a widely used logical backup tool. It gives a variety of options to include or exclude databases, select specific data to be backed up, back up only the schema without data, or just take a backup of stored routines without anything else, and more.
Taking backups using mysqldump
How to do it...
The mysqldump utility comes along with the mysql binary, so you do need to install it separately. Most production scenarios are covered in this section.
The syntax is as follows:
shell> mysqldump [options]
In the options, you can specify the username, password, and hostname to connect to the database, like this:
--user <user_name> --password <password>
or
-u <user_name> -p<password>
In this...