How can i use mysqldump to backup and restore database to a remote server?
Both have root access. I am using putty to perform this.
So far I tried the follo
For a single DB, Taking backup from a remote server is :
mysqldump -u -p -h [database-name] > dump.sql
Restore is:
mysql -u -p -h [database-name] < dump.sql
more details about options of mysqldump are available here: https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html