copy tables structure + data...send to a url and then issue that command on that server

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ahlar64

copy tables structure + data...send to a url and then issue that command on that server

Post by ahlar64 » Tue 22 Aug 2006 17:19

I am wondering what would be the best way to do this.

I want to do these steps.

1) Copy the structure and data of several tables from a local mysql server.

2) Send those structures and data to a url either through strings or a tstream (I have this part done)

3) At the server at that url send these strings or stream to a SQL server there (this part is also done too)

4) Use these strings / stream and write (overwrite) the tables on that MySQL server with the latest data and structures.


I am not sure as to how I would go about doing this.

---Dave

teunis
Posts: 48
Joined: Wed 01 Feb 2006 14:15
Location: Curacao

Post by teunis » Wed 23 Aug 2006 00:22

Are you using the functions:
TMyServerControl.BackupToFile and ,,,.RestoreFromFile ?

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

Post by Antaeus » Wed 23 Aug 2006 12:35

Another way is usage of TMyDump or TMyBackup components. Please see MyDAC help for detailed information.

Post Reply