linode

Downloading MySQL dump from command line

♀尐吖头ヾ 提交于 2019-11-26 19:11:10
I am moving away from Linode because I don't have the Linux sysadmin skills necessary; before I complete the transition to a more noob-friendly service, I need to download the contents of a MySQL database. Is there a way I can do this from the command line? You can accomplish this using the mysqldump command-line function. For example: If it's an entire DB, then: $ mysqldump -u [uname] -p[pass] db_name > db_backup.sql If it's all DBs, then: $ mysqldump -u [uname] -p[pass] --all-databases > all_db_backup.sql If it's specific tables within a DB, then: $ mysqldump -u [uname] -p[pass] db_name

Downloading MySQL dump from command line

久未见 提交于 2019-11-26 08:57:46
问题 I am moving away from Linode because I don\'t have the Linux sysadmin skills necessary; before I complete the transition to a more noob-friendly service, I need to download the contents of a MySQL database. Is there a way I can do this from the command line? 回答1: You can accomplish this using the mysqldump command-line function. For example: If it's an entire DB, then: $ mysqldump -u [uname] -p db_name > db_backup.sql If it's all DBs, then: $ mysqldump -u [uname] -p --all-databases > all_db