Export MySQL to file


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. mysqldump -u[username] -p[password] [database_name] -h[myhost.com] > `date +"%Y_%m_%d"`.sql

Report this snippet


Comments


You need to login to view comments.