e.g. from link
Export with date:-
$mysqldump -u {user} -p {database} | gzip > `date -I`.database.sql.gz
Import from the export:-
$gzip -dc < `date -I`.{database}.sql.gz | mysql -u {user} -p {database}
Export with date:-
$mysqldump -u {user} -p {database} | gzip > `date -I`.database.sql.gz
Import from the export:-
$gzip -dc < `date -I`.{database}.sql.gz | mysql -u {user} -p {database}
No comments:
Post a Comment