Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Fr 14.10.05 07:52 
Hallo. Wie kann ich zwei gleiche Tabellen aus verschieden DB Synchronisieren? Danke

MFG
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Fr 14.10.05 08:43 
Kommt drauf an ob One-Way oder Two-Way.

1. One-Way:
Auf der Shell mit
shell> mysqldump --add-drop-table datenbank1 > mysql datenbank2
Oder über Servergrenze:
shell> mysqldump --add-drop-table datenbank1 > mysql --host=deinhost datenbank2

2. Two-Way:
Geht nur zu Fuss und nur dann, wenn Du in beiden Tabellen einen Timestamp drin hast, damit Du weisst, welcher Datensatz der aktuellere ist.

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 17.10.05 13:00 
Hallo. Drop Table bedeutet doch. Lösche Tabellen aus DB1 + füge Tabellen aus DB2 ?

Ich ersetzte also die Tabellen aus DB1 durch DB2 ? richtig?
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 17.10.05 13:35 
Richtig! Deswegen "One-Way". Weil die Übertragung nur in eine Richtung läuft. Willst Du die Daten nicht ersetzen kann das mysqldump auch. Ein Blick in die Man-Page zeigt alle optionen.

_________________
Ha! Es compiliert! Wir können ausliefern!
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 17.10.05 14:45 
Weist du wie man eine BINÄRLOGDATEI Einspielen kann? Ich bin gerade dabei die Sache zu analysieren, villeicht kannst du mir ein Tip geben.
MFG
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 17.10.05 14:50 
Nur eine Frage pro Thread.
Ich beantworte die Frage hier: www.delphi-forum.de/...ispielen+_50100.html

_________________
Ha! Es compiliert! Wir können ausliefern!