What commands I can use at ssh to export(download) mysql database using SSH?
First of all open command prompt then open bin directory in cmd (i hope you're aware with cmd commands) go to bin directory of your MySql folder in WAMP program files. press enter system will export particular database and create sql file to the given location.
By using SSH, it is very easy to create a backup (dump) of your entire database. Once at the shell prompt, type in the following command and press [enter]: mysqldump -h 127.0. 0.1 -u db_user -p db_name > db_backup.
To export a mysql dump using SSH, execute the following command:
mysqldump -u username -p dbname > db_dump.sql
username -> your mysql username
dbname -> databse name
Enter password when prompted. and you are done.
Have a look here: MySQL Import and Export (.sql file) via SSH
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With