Here’s a quick way to move data from one MySQL server to another
Let source box be ServerOne, and the target box be ServerTwo. (user-names and schema names are indicative) –
- On ServerOne,
- mysqldump -u username -p db_name > data-dump.sql (provide password when asked)
- scp data-dump.sql serverTwoUsername@ServerTwo:~/
- On ServerTwo
- mysql -u username -p
- create schema schema-name;
- exit
- mysql -u username -p -h localhost schema-name < data-dump.sql
- verify
- mysql -u username -p
- use schema-name;
- show tables;
Should be done.

Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics.
He now runs a conversational AI company – DheeYantra – focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.