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

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 17.10.05 11:55 
Hallo. Ich möchte eine BINLOGDATEI einspielen. Das soll mite MYSQLBINLOG funktionieren. Ich habe mich zwar unter Mysqlbinlog \? informiert, leider kenne ich keine richige Sqntax. Kann mir bitte jemand weiter helfen?
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 17.10.05 14:51 
Du nimmst Dir das binlog und kopierst es in ein Verzeichnis, in dem nicht mehr darauf geschrieben wird. Dann auf der Shell:

shell> mysqlbinlog dateiname

Das wars schon!

_________________
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 15:13 
Passiert nicht. Keine Fehlermeldung. "neue" Daten sind auch nicht zusehen.

SHEL rufe ich unter MySQLDaministrator auf. Was kann das sein?
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 15:35 
Hallo. Nun scheint der Aufruf der Funktion richtig zu sein:

mysql> mysqlbinlog \. C:\DS\Binlog\BinaryLog.000001

Leider kommt es zu diese Fehlerdeldung:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '■binX
ÄSC' at line 1

Ein Ausschnitt aus der Logdatei:

þbinXŽSC K   4.1.8-nt-log XŽSChŽSC  O ª hŽSC k   filiale2 INSERT INTO `001_log` (`DatumZeit` ,`Filiale` ,`Perso_Nr` ,`ID` ,`Pa` ) VALUES ('20051017134336', '0', '0', 'P0001', '')

ist keine SQL Syntax warum wird in die BINÄRDATEI geschrieben ?
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 17.10.05 16:50 
Du musst den Befehl auf der Shell ausführen, nicht auf der mySQL-Konsole!
Also direkt im cmd bei Windoof (Was Du scheinbar benutzt!)

_________________
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: Di 18.10.05 07:22 
Hallo.
mysqlbinlog C:\DS\Binlog\Binlog.01| mysql -h localhost -u Benutzer -p
Enter password: passwort

Nun funzt das!

Moderiert von user profile iconraziel: 2. Frage entfernt


Zuletzt bearbeitet von Karstadt am Mi 19.10.05 12:08, insgesamt 1-mal bearbeitet
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Di 18.10.05 11:16 
Hallo Karstadt,

ich habe deine neue Frage entfernt, da du bereits ein neues Topic dafür erstellt hast.

@neojones: Deine Antwort habe ich hier abgetrennt und im anderen Topic angefügt :)

Gruß,
raziel

_________________
JSXGraph