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.