If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Replication not real-time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 03:57
A340-313X A340-313X is offline
Registered User
 
Join Date: Aug 2003
Posts: 11
MySQL Replication not real-time

Hello all

I have set up MySQL binary replication (on MySQL v4.0.14, Mandrake Linux 9.1) between two servers, A and B. On server A, I will be replicating tables from database C and on server B, I will be replicating tables from database D (yes, the database names are different).

I have set up a dbrep account on the master server, A, to only be able to access database C with Replication Slave, Replication Client and Super privileges. All the my.cnf files are configured correctly and the first time I start up the slave server, it does zap records over from the master server.

However, I notice that after the first time, it no longer keeps up with the master server. Although a 'show slave status;' seems to indicate that the relay log on the slave is keeping pace with the master's relay log (at almost the same position), nothing is inserted into the tables.

Does anyone know how frequently MySQL does the updates and if there is a better replication tool out there that I can make use of?

Thanks a lot for the help!
Reply With Quote
  #2 (permalink)  
Old 10-19-03, 23:02
A340-313X A340-313X is offline
Registered User
 
Join Date: Aug 2003
Posts: 11
Hello guys

The replication seems to be working now after I inserted the line replicate-rewrite-db=A->B. The command allows me to translate queries meant for database name A (on the master) to database name B (on the slave).

However, now I encounter a weird error, error code 22 from table handler while trying to execute an SQL INSERT statement. Does anybody know what 'invalid argument' means? (That is what the error code means according to "perror".)

Thanks !
Reply With Quote
  #3 (permalink)  
Old 02-03-04, 10:47
scottiger scottiger is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
There is a product called myreplicator can do real-time replication from MySQL to MySQL, Oracle, SQL Server(www.myreplicator.com).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On