![]() |
Datenbank: MySQL • Version: k.p. • Zugriff über: MySQL direct
You have an error in your SQL syntax; 'shell> mysqldump -
Ich wollte per Delphi ein Backup machen aber es erscheint die Meldung (ich benutze MySQL direct):
Code:
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
Delphi-Quellcode:
Ich kann Tabellen erstellen. also kann es ja nicht an der Verbindung liegen.
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; |
Re: You have an error in your SQL syntax; 'shell> mysqldu
Dass könnte daran liegen, das das kein SQL ist. Es handelt sich hier um einen Aufruf eines Kommandozeilentools
|
Re: You have an error in your SQL syntax; 'shell> mysqldu
Zitat:
fragt sich wie. ich habe gehört das das so wol gehen soll. muss ich woll alle tabellen auflisten und dan irgendwie inhalt auslesen und speichern. |
Re: You have an error in your SQL syntax; 'shell> mysqldu
Externe Programme kannst du per ShellExecute() aufrufen
|
Re: You have an error in your SQL syntax; 'shell> mysqldu
Zitat:
Ich muss irgendwie alle Tabellen auslesen und abspeichern. |
Re: You have an error in your SQL syntax; 'shell> mysqldu
Dann musst du dies in SQL unter Zuhilfenahme der Systemtabellen machen
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:48 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz