How to use MySQL dump from a remote machine

前端 未结 7 1468
刺人心
刺人心 2020-12-12 12:41

How can I backup a mysql database which is running on a remote server, I need to store the back up file in the local pc.

7条回答
  •  温柔的废话
    2020-12-12 13:31

    Tried all the combinations here, but this worked for me:

    mysqldump -u root -p --default-character-set=utf8mb4 [DATABASE TO BE COPIED NAME] > [NEW DATABASE NAME]
    

提交回复
热议问题