Hi i have to move mysql database to another server ,
It’s nearly 5 gb
i can have root access at both servers?
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.
Usually you run mysqldump to create a database copy and backups as follows:
Copy db-name.out file using sftp/ssh to remote MySQL server:
Restore database at remote server (login over ssh):
OR
How do I copy a MySQL database from one computer/server to another?
Short answer is you can copy database from one computer/server to another using ssh or mysql client.
You can run all the above 3 commands in one pass using mysqldump and mysql commands (insecure method, use only if you are using VPN or trust your network):
Use ssh if you don’t have direct access to remote mysql server (secure method):
OR
You can just copy table called foo to remote database (and remote mysql server remote.box.com) called bar using same syntax:
OR
Almost all commands can be run using pipes under UNIX/Linux oses.
More from Reference
Regards,