forums › forums › SQLyog › Sync tools, Migration, Scheduled Backup and Notifications › Data sync deleting rows in target db
- This topic is empty.
-
AuthorPosts
-
-
December 9, 2004 at 12:11 am #8689billy44Member
I am using the trial version, and it seems to run ok and quickly, however I get this:
`Agentsmoney` 31 31 0 0 31
`Agentszip` 153 153 0 0 0
`Agreements` 311 311 0 0 0
sure enough, the target db, table agentsmoney is empty…
-
December 9, 2004 at 3:41 am #16663RiteshMember
Which versions of MySQL & SQLyog are you using?
Can you mail me the table sturcture and sample data for Agentsmoney?
-
December 10, 2004 at 12:11 am #16664wwwildMember
I had the same issue when doing a sync between a MySQL 3.23.x server and MySQL 4 server.
-
December 10, 2004 at 3:25 am #16665RiteshMember
This is an issue when you try to sync data between a MySQL 3.23.x server and a 4.x server.
Both the versions return different checksums for the same data when used along with concat_ws(). This results in incorrect working of SJA.
It is recommended to sync data between same versions of MySQL.
-
December 10, 2004 at 5:05 pm #16666billy44Member
I changed my version of mysql and it did in fact work correctly, except these errors in the log:
No PRIMARY KEY defined in the table '`Completed`'
No PRIMARY KEY defined in the table '`Online`'
No PRIMARY KEY defined in the table '`State_Alabama`'
No PRIMARY KEY defined in the table '`State_Alaska`'
I cannot define a primary key in these dbs because the user is inserting the information manually, including the id and all..
is there a work around on this error?
-
December 10, 2004 at 6:19 pm #16667RiteshMember
Right now you need to have a PRIMARY KEY defined for a table to be synced. That is the only way to determine a unique row of data in a table.
We are working on a work-around where SJA will automatically truncate the data in the target table and do a complete insert from source to target.
-
December 10, 2004 at 6:20 pm #16668RiteshMember
The best workaround is to add an auto-increment column in the table.
-
-
AuthorPosts
- You must be logged in to reply to this topic.