I need to copy an entire database from a mysql installation on a remote machine via SSH to my local machines mysql.
I know the SSH and both local and remote MYSQL admin user and password.
Is this enough information, and how is it done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try reading here:
Modified from http://www.cyberciti.biz/tips/howto-copy-mysql-database-remote-server.html – modified because I prefer to use
.sqlas the extension for SQL files:Basically you’ll use
mysqldumpto generate a dump of your database, copy it to your local machine, then pipe the contents intomysqlto regenerate the DB.You can copy the DB files themselves, rather than using
mysqldump, but only if you can shutdown the MySQL service on the remote machine.