Return to Snippet

Revision: 31161
at August 31, 2010 09:53 by gdvickery


Updated Code
mysqldump -u[username] -p[password] [database_name] -h[myhost.com] > `date +"%Y_%m_%d"`.sql

Revision: 31160
at August 31, 2010 09:51 by gdvickery


Updated Code
mysqldump -u[username] -p[password] [database_name] <-h[hostname.com]> > `date +"%Y_%m_%d"`.sql

Revision: 31159
at August 31, 2010 09:47 by gdvickery


Initial Code
mysqldump -u[username] -p[password] [database_name] > `date +"%Y_%m_%d"`.sql

Initial URL

                                

Initial Description
Dumps the contents of a mysql database to a .sql file named by the current date.

Initial Title
Export MySQL to file

Initial Tags
mysql

Initial Language
Bash