Einzelnen Beitrag anzeigen

Benutzerbild von Deltachaos
Deltachaos

Registriert seit: 20. Feb 2008
Ort: Berlin
195 Beiträge
 
Delphi 7 Personal
 
#1

You have an error in your SQL syntax; 'shell> mysqldump -

  Alt 4. Mai 2008, 19:15
Datenbank: MySQL • Version: k.p. • Zugriff über: MySQL direct
Ich wollte per Delphi ein Backup machen aber es erscheint die Meldung (ich benutze MySQL direct):

Code:
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 'shell> mysqldump --opt db67713x724842 > bak.sql' at line 1
Code:
Delphi-Quellcode:
begin
  form1.FMysql.query('shell> mysqldump --opt db67713x724842 > bak.sql', true, ex);
    if ex then
    begin
      log.WriteString(inttostr(day)+'.'+inttostr(month)+'.'+inttostr(Year), inttostr(hour) +':'+ inttostr(min) +':'+ inttostr(sec), 'OK!');
      dos('['+ inttostr(hour) +':'+ inttostr(min) +':'+ inttostr(sec) +'] OK!', 60);
    end
    else
    begin
      log.WriteString(inttostr(day)+'.'+inttostr(month)+'.'+inttostr(Year), inttostr(hour) +':'+ inttostr(min) +':'+ inttostr(sec), FMysql.LastError);
      dos('['+ inttostr(hour) +':'+ inttostr(min) +':'+ inttostr(sec) +'] '+FMysql.LastError, 60);
    end;
end;
Ich kann Tabellen erstellen. also kann es ja nicht an der Verbindung liegen.
Maximilian Ruta
  Mit Zitat antworten Zitat