Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm pretty decent with MySQL but never had to deal with replication unless something broke which I could stop the slave, fix a table and start again, but here is my quick question.
A client has 10 or so servers each has a slave all working. 1 server is getting a bit tight on use, so I was asked to move a few databases from one server to another. Now I can do a mysqldump > file, then import, but is there a master type config that say's which to replicate, or if I import that from master1 to master10, will it just start replicating to slave10?
Gonna try to do some reading while I wait, but thought it maybe a quicker answer here.
It depends on what you're looking to do before we can tell you how you would want to proceed. Are you looking to move databases to a new master and maintain a 1:1 master/slave setup, or are you looking to only split up the slaves and keep 1 master replicating to two slaves?
The first is ideal, but the second one could work in some situations.
Sorry I was away on vacation, and sorry I wasn't as descriptive, usually I'm better than that!
So, to answer the above, the current setup is there are 10 or so masters each has a slave. So sql1 has a sql-slave1, etc. There's alot that has been in place forever, but basically some servers have more databases or larger databases and checking the sizes, sql1 for example may have the root partition 85% full, and sql-5 maybe 40% full. So I want to simply do a mysqldump to an .sql, then import to another server and start it up, I am just unsure how to get the slave going.
I would assume I should copy the slave data over as well so it doesn't have to replicate the whole thing, but that should be a bit more info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.