Create a dump of a MySQL database
Sam Ciaramilaro • June 12, 2015
SnippetsTo create a dump of a MySQL database, use the mysqldump
command-line utility. This utility is installed with MySQL, and can be used to dump a database to a file.
mysqldump {database_name} > {toFilename}.sql -u{username} -p