By pruby3926
I am a beginner, I did not take any steps as of now.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
If you would like to export only two tables and import them to your second node you could use the mysqldump command, it would look something like this:
mysqldump -u root -p your_db_name_here table1 table2 > your_db_name_tables1_2.sql
Then you could copy the .sql file over to your seconde node and import it:
To copy the file use:
scp your_db_name_tables1_2.sql root@your.second.node.ip:/root/
To import the file to your database on your second node, first ssh to the second node and run:
mysql -u root -p your_db_name < your_db_name_tables1_2.sql
If you are actually after MySQL replication setup, you can follow the steps here on how to set that all up:
https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.