mysqldump backup and restore to remote server

前端 未结 6 697
清酒与你
清酒与你 2020-12-15 08:31

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

6条回答
  •  感情败类
    2020-12-15 09:07

    This link provides information on backing up and restoring with mysqldump. It also gives some examples with a remote server.

    The important commands from that link being:

    backup:

    mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
    

    restore:

    mysql -u root -p[root_password] [database_name] < dumpfilename.sql
    

提交回复
热议问题