Do Security Copy

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Ithilien
Posts: 33
Joined: Tue 27 Feb 2007 21:58

Do Security Copy

Post by Ithilien » Mon 23 Jul 2007 14:33

Hello,

i'm trying to make a security copy of my database using mydac but i can't. I tried to use the client mysqldump but it works in sheel, not as a SQL command ( if i'm not wrong ), so how can i do it using SQL statements? Is it possible? THank you.

P.D.: I'm working in Windows XP environment.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 24 Jul 2007 08:06

If I understood you correctly, you need either TMyDump or TMyBackup component of MyDAC. You can read more about them in the MyDAC help.
This topic of MySQL Reference Manual should be also useful for you.

Ithilien
Posts: 33
Joined: Tue 27 Feb 2007 21:58

Post by Ithilien » Tue 24 Jul 2007 13:37

Yeah, but i have MyDAC standard so i don't have this component... :(

I think the best easy solution is to use those sentences:

Code: Select all


SELECT * INTO OUTFILE 'file_name' FROM tbl_name.

LOAD DATA INFILE 'file_name' REPLACE ...


Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 25 Jul 2007 07:56

Yes, this solution looks appropriate in your case.
But mysqldump provides more functionality. It is a self standing tool that included in the MySQL installation.

Post Reply