MySQL database dump from terminal command

Basic dump command : 
mysqldump -u root -p prod_helpdesk > db_backup.sql

Dump command with rename file by date time : 
mysqldump -u root -p prod_helpdesk > prefix_$(date +%Y-%m-%d-%H.%M.%S).sql

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine