Backup the whole database

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Zsolt Csillag
Posts: 30
Joined: Sun 28 May 2006 16:09

Backup the whole database

Post by Zsolt Csillag » Tue 09 Oct 2007 20:00

Hello,

I use MyDAC version: 4.40.0.24 and MySQL server version: 5.0.45

I would like to backup every day the whole database but I don't want the customer to be able to open the file with a text editor.

I first tried the TMyBackup. I use InnoDB tables and I got the following error message:
"The storage engine for the table does not support backup".

????

Then I tried TMyDump.
First I got an error message "Function MyStr does not exists".
It is funny because the MyStr exists but it is not a function as the TMyDump states, but a procedure!

Second: the other objects are stored in a text file. Should I compress with password on my own so as the customer wouldn't peep in?

Thank you in advance

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

Post by Antaeus » Wed 10 Oct 2007 14:18

Zsolt Csillag wrote:"The storage engine for the table does not support backup".
TMyBackup uses the BACKUP TABLE command of MySQL in binary mode (TMyBackup.Mode = bmBinary). This command supports only the MyISAM storage engine.

Zsolt Csillag wrote:First I got an error message "Function MyStr does not exists".
It is funny because the MyStr exists but it is not a function as the TMyDump states, but a procedure!
I could not reproduced the problem. Please send me a complete small sample at mydac*crlab*com to demonstrate it, including script to create server objects.
Zsolt Csillag wrote:Second: the other objects are stored in a text file. Should I compress with password on my own so as the customer wouldn't peep
TMyDump does not support data encryption. You should implement it by yourself.

Post Reply