473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Master - Slave Replication on specific rows of table

I am a not an expert in MySQL world and looking for a solution like

I have a table for example:

issue_table
=============
id, issue_from, details
1, machine1, "some details"
2, machine1, "some details again"
3, machine2, "some details"
4, machine2, "some details"

Is it possible to setup a master slave replication where, where I can
filter what data goes to which slave? In simple terms, after
replication I would like something like:

slave1.issue_table
===============
id, issue_from, details
1, machine1, "some details"
2, machine1, "some details again"

slave2.issue_table
=================
id, issue_from, details
3, machine2, "some details"
4, machine2, "some details"

Is replication the right tool to do this kind of work? Or there is a
better design to handle such problems.
I have read something that it is possible only by partitioning the table in the older versions of MySQL.
Is there any advancement in latest versions of MySQL ( 5.6 or 5.7 ) for such kind of replication.

Even a pointer to the right tutorial/document would be helpful.
Nov 19 '13 #1
1 1273
Niheel
2,460 Expert Mod 2GB
Replication will replicate all of the data. Master / Slave are basically full copies.

What you are talking about is more like sharding or partitioning. Where the data is stored across multiple machines. The best way to shard is to do in the application code.


MySQL offers partitioning built in. Here is more information
http://dev.mysql.com/doc/refman/5.1/...-overview.html

There info there on how to find out if your db supports partitioning
http://dev.mysql.com/doc/refman/5.1/...titioning.html
Nov 27 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Tom Roos | last post by:
------_=_NextPart_001_01C349FB.3DE177A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable g'day listers i run a mysql 4.0.13 master and slave on...
0
by: flubdgub | last post by:
Quick question I haven't found a straight answer to in MySQLs docs... In the case of 2 3.23.X series mysql databases in a master/slave replication setup (myiasm tables), if a FLUSH TABLES WITH...
0
by: Winston Ng | last post by:
Hi, I have 2 servers (A and B) setup as Master and Slave respectively. Upon A's failure, all client's request will be directed to B. How can I set A to become master again after its been...
9
by: Jan Wieck | last post by:
Dear community, for some reason the post I sent yesterday night still did not show up on the mailing lists. I have set up some links on the developers side under...
0
by: stefanjohansson_2005 | last post by:
I can databind to a relation in WindowsForms for example: I have a typed DataSet with an "Orders" table and a "Order Details" table. They have a relation called "OrderRelation". I have a...
1
by: Ambica Jain | last post by:
I want to change the backcolor of some specific rows in the DataGrid. I have seen some samples that do it by overriding Paint method of inherited column class. However, I am using typed dataset...
0
by: ramesh1210 | last post by:
Please help me:Is the Postgre replication is used for two master asynchronus replication.Is this suitable for postgresql 7.3 or 7.4 versions
3
ram09
by: ram09 | last post by:
ERROR 1200 <HY000>: The sever is not configured as slave; fix in config file or with CHANGE MASTER TO... i always encounter this error whenever i start slave...i already reset my master and slave..i...
2
by: santhanalakshmi | last post by:
hi, I am trying to set Master-Server Replication.I followed the following steps,even though slave can't able to connect the master. master ip : 10.93.210.133 slave ip : 10.93.210.211...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.