Re: Dump MYSQL
> No, Christian. Not about -p, First i tried, I have already know that. :)
> command is right, tempfile.sql isn't created (IMO, the table have a blob field).
AFAIK mysqldump couldn't care a less whether there are BLOB fields or
not, as all the dump does is to save the raw data.
But yes, there is a problem with APprocess and large files, I haven't
quite found why, as it behaves differently depending on the context.
I can not get it to work either with mysqldump, but if I process a large
picture with Ghostscript there is no problem - weird!
However I tried this instead of AProcess, and this works:
var
.
.
commandtext:string
S:longint;
begin
commandtext:='mysqldump -h '+hostname+' -u '+username+' -p'
+password+' '+database+' '+tablename+' > tempfile.sql';
S:=fpsystem(commandtext);
end
However this does only work on Linux, and remember unix in your clauses.
/Christian
(Continue reading)