dbTalk Databases Forums  

how to distribute database from servers to remote another servers.

comp.databases.mysql comp.databases.mysql


Discuss how to distribute database from servers to remote another servers. in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jun Young Kim
 
Posts: n/a

Default how to distribute database from servers to remote another servers. - 01-17-2012 , 07:22 AM






hello, everyone!
I need your helps to distribute my current database to another remote servers.

let me figure out the situation I have.

I have 2 servers now

a server_0 has a following table.

Quote:
pk | field_1 |
0 | a |
2 | b |
4 | c |
6 | d |
a server_1 has a following table.

Quote:
pk | field_1 |
1 | a |
3 | e |
5 | f |
7 | c |

now , I want to expand the current server'count from 2 to 5.
so, I need to distribute my data in tables;

new_server_0
Quote:
pk | field_1 |
0 | a |
5 | f |

new_server_1
Quote:
pk | field_1 |
1 | a |
6 | d |
new_server_2
Quote:
pk | field_1 |
2 | b |
7 | c |
new_server_3
Quote:
pk | field_1 |
3 | e |
new_server_4
Quote:
pk | field_1 |
4 | c |
how can I do this job easily?
thanks.

Reply With Quote
  #2  
Old   
Captain Paralytic
 
Posts: n/a

Default Re: how to distribute database from servers to remote another servers. - 01-17-2012 , 10:00 AM






On Jan 17, 1:22*pm, Jun Young Kim <juneng... (AT) gmail (DOT) com> wrote:
Quote:
hello, everyone!
I need your helps to distribute my current database to another remote servers.

let me figure out the situation I have.

I have 2 servers now

a server_0 has a following table.

| pk | field_1 |
| 0 *| a |
| 2 *| b |
| 4 *| c *|
| 6 *| d |

a server_1 *has a following table.

| pk | field_1 |
| 1 *| a |
| 3 *| e |
| 5 *| f *|
| 7 *| c |

now , I want to expand the current server'count from 2 to 5.
so, I need to distribute my data in tables;

new_server_0
| pk | field_1 |
| 0 *| a |
| 5 *| f |

new_server_1
| pk | field_1 |
| 1 *| a |
| 6 *| d |

new_server_2
| pk | field_1 |
| 2 *| b |
| 7 *| c |

new_server_3
| pk | field_1 |
| 3 *| e |

new_server_4
| pk | field_1 |
| 4 *| c *|

how can I do this job easily?
thanks.
INSERT and DELETE statements?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.