Hi
I'm in need of creating reporting database. What I have to do it is to
replicate only half of tables to next database so reports could query
only that second database. Unfortunately there is too many inserts in
existing database so simple master/slave solution won't give me much. I
was wondering if there is a way to replicate just few tables? Can I use
for it mysql replication or do I have to create manually scripts to do
that?
I expect that reporting servers is a typical way to report off of
transactual systems, hope some of you had experience with similar
problem.
Thanks in advance for any tips
Radek 5 4289
Radek wrote:
Hi
I'm in need of creating reporting database. What I have to do it is to
replicate only half of tables to next database so reports could query
only that second database. Unfortunately there is too many inserts in
existing database so simple master/slave solution won't give me much. I
was wondering if there is a way to replicate just few tables? Can I use
for it mysql replication or do I have to create manually scripts to do
that?
I expect that reporting servers is a typical way to report off of
transactual systems, hope some of you had experience with similar
problem.
Thanks in advance for any tips
Radek
Yes, you can do that. Check out the MySQL manual for the my.cnf
settings for:
replicate-do-db
replicate-do-table
replicate-wild-do-table
Using these filtering options, you can have only certain tables
replicate to your slave. Then, you can run your reports off of the
slave tables.
A great book about setting up complex replication is Jeremy Zawodny's
High Performance MySQL.
-Steven
Thanks for a quick answer! My only concern here is that the tables I
want to replicate are created (summarized) from tables (huge 50GB+
containing logs) I do not want to replicate. I'm wondering if MySQL
will do the work in this situation?
Thanks for a book tip. I will check it out.
Cheers
Radek
Steven Musumeche wrote:
Radek wrote:
Hi
I'm in need of creating reporting database. What I have to do it is to
replicate only half of tables to next database so reports could query
only that second database. Unfortunately there is too many inserts in
existing database so simple master/slave solution won't give me much. I
was wondering if there is a way to replicate just few tables? Can I use
for it mysql replication or do I have to create manually scripts to do
that?
I expect that reporting servers is a typical way to report off of
transactual systems, hope some of you had experience with similar
problem.
Thanks in advance for any tips
Radek
Yes, you can do that. Check out the MySQL manual for the my.cnf
settings for:
replicate-do-db
replicate-do-table
replicate-wild-do-table
Using these filtering options, you can have only certain tables
replicate to your slave. Then, you can run your reports off of the
slave tables.
A great book about setting up complex replication is Jeremy Zawodny's
High Performance MySQL.
-Steven
Yes, you can do that. You would use MySQL's filtering options
(replicate-ignore-table) to ignore the log tables. All other tables
would replicate, but anything defined in your replicate-ignore-table
filters will not replicate.
Good luck,
Steven
Radek wrote:
Thanks for a quick answer! My only concern here is that the tables I
want to replicate are created (summarized) from tables (huge 50GB+
containing logs) I do not want to replicate. I'm wondering if MySQL
will do the work in this situation?
Thanks for a book tip. I will check it out.
Cheers
Radek
Steven Musumeche wrote:
>Radek wrote:
>>Hi
I'm in need of creating reporting database. What I have to do it is to replicate only half of tables to next database so reports could query only that second database. Unfortunately there is too many inserts in existing database so simple master/slave solution won't give me much. I was wondering if there is a way to replicate just few tables? Can I use for it mysql replication or do I have to create manually scripts to do that? I expect that reporting servers is a typical way to report off of transactual systems, hope some of you had experience with similar problem.
Thanks in advance for any tips Radek
Yes, you can do that. Check out the MySQL manual for the my.cnf settings for:
replicate-do-db replicate-do-table replicate-wild-do-table
Using these filtering options, you can have only certain tables replicate to your slave. Then, you can run your reports off of the slave tables.
A great book about setting up complex replication is Jeremy Zawodny's High Performance MySQL.
-Steven
Hey Steven
Thanks for help.
Looks like it is not so simple anyway: http://forum.mysqlperformanceblog.com/s?t=rview&goto=9
cheers
Radek
Steven Musumeche wrote:
Yes, you can do that. You would use MySQL's filtering options
(replicate-ignore-table) to ignore the log tables. All other tables
would replicate, but anything defined in your replicate-ignore-table
filters will not replicate.
Good luck,
Steven
Radek wrote:
Thanks for a quick answer! My only concern here is that the tables I
want to replicate are created (summarized) from tables (huge 50GB+
containing logs) I do not want to replicate. I'm wondering if MySQL
will do the work in this situation?
Thanks for a book tip. I will check it out.
Cheers
Radek
Steven Musumeche wrote:
Radek wrote: Hi
I'm in need of creating reporting database. What I have to do it is to replicate only half of tables to next database so reports could query only that second database. Unfortunately there is too many inserts in existing database so simple master/slave solution won't give me much. I was wondering if there is a way to replicate just few tables? Can I use for it mysql replication or do I have to create manually scripts to do that? I expect that reporting servers is a typical way to report off of transactual systems, hope some of you had experience with similar problem.
Thanks in advance for any tips Radek
Yes, you can do that. Check out the MySQL manual for the my.cnf
settings for:
replicate-do-db
replicate-do-table
replicate-wild-do-table
Using these filtering options, you can have only certain tables
replicate to your slave. Then, you can run your reports off of the
slave tables.
A great book about setting up complex replication is Jeremy Zawodny's
High Performance MySQL.
-Steven
Do you want to create the summary tables on the master and then have
them replicate to the slave? If so, then you won't have a problem
unless you are using a SELECT INSERT statement.
-Steven
Radek wrote:
Hey Steven
Thanks for help.
Looks like it is not so simple anyway: http://forum.mysqlperformanceblog.com/s?t=rview&goto=9
cheers
Radek
Steven Musumeche wrote:
>Yes, you can do that. You would use MySQL's filtering options (replicate-ignore-table) to ignore the log tables. All other tables would replicate, but anything defined in your replicate-ignore-table filters will not replicate.
Good luck, Steven
Radek wrote:
>>Thanks for a quick answer! My only concern here is that the tables I want to replicate are created (summarized) from tables (huge 50GB+ containing logs) I do not want to replicate. I'm wondering if MySQL will do the work in this situation?
Thanks for a book tip. I will check it out.
Cheers Radek
Steven Musumeche wrote: Radek wrote: Hi > I'm in need of creating reporting database. What I have to do it is to replicate only half of tables to next database so reports could query only that second database. Unfortunately there is too many inserts in existing database so simple master/slave solution won't give me much. I was wondering if there is a way to replicate just few tables? Can I use for it mysql replication or do I have to create manually scripts to do that? I expect that reporting servers is a typical way to report off of transactual systems, hope some of you had experience with similar problem. > Thanks in advance for any tips Radek > Yes, you can do that. Check out the MySQL manual for the my.cnf settings for:
replicate-do-db replicate-do-table replicate-wild-do-table
Using these filtering options, you can have only certain tables replicate to your slave. Then, you can run your reports off of the slave tables.
A great book about setting up complex replication is Jeremy Zawodny's High Performance MySQL.
-Steven
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nathan Simpson |
last post by:
Hi,
We have one domain with a mixture of NT PDC's one Win2K DC (which was the
first installed) and 4 Windows 2003 DC's.
I created our sites as per MS documentation and created the subnets that...
|
by: Joe Powell |
last post by:
We are migrating from SCO with 8i to SuSe SLES 8 with 9iR2 on our
Compaq i586 backup server "BKUP". This has already been done on our
development server "DEV" and production server "PROD". The...
|
by: Brian E. Seppanen |
last post by:
I have a large number of tables in a database, and I'm looking at
replicating only 5 of those 4000+ tables to about 5-7 other hosts.
The primary server runs 4.0.15 and would replicate to 3.23...
|
by: nwiebe |
last post by:
Hi, does anyone know how to avoid replicating delete statements?
I have a table in a source database. This table is pruned
occasionally. I'd like to have a copy of this table in a second...
|
by: jodyblau |
last post by:
I'm fairly new to access, so I hope this question isn't too elementary.
I'm putting together a database for my office. I want the database to
be accessible to 5 or 6 users on our network and so...
|
by: ceadtinneh |
last post by:
We're running merge replication between to SQL Server 2000 servers. The
application isn't very high volume the setup is pretty vanilla (ie no
filters, etc).
We have a push subscription set up...
|
by: Imicola |
last post by:
Hi,
I recently got an external hard drive to backup all my files. The easiest way it seems to synchronise between my desktop computer and the backup files on the external hard drive is to use...
|
by: war_wheelan |
last post by:
I am replicating an 80GB database between NY can CT and would like to
know why table sizes are different between the two.
Here is an example of sp_spaceused::
NY IOI_2007_04_23 ...
|
by: aswath |
last post by:
hi dere,
i have a question.
i have an array with replicating values.... al i want to do is
delete all replicating values and store the result in another array.
eg.,
String a={1,2,3,3};
String...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
| |