mysqldump command line client-program, This tutorials shows you example to take mysql database backup and also how to restore them with the help of mysqldump and mysql command line in Linux.
mysqldump is command-line program used for take dump of mysql database ( local, server) in a single file.
OverView MySQL Dump #mysqldump -h <hostname> -u <db_UserName> <db_name> -p > backup_file< backupTIIMESTAMP.sql> MySQL Restore, database name (schema) should be exist. #mysql -h <hostname> -u <db_UserName> --database <db_name> -p < backup_file< backupTIIMESTAMP.sql> Do ssh in the server and follow command # ssh UserName@IP Copy sql backup file from server to local machine by scp fromlocalhost to remote server # scp <UserName>@<hostnameORIP > :/path/backup.sql<PathToSave>