MySQL Full Dump

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
a.alekizoglou
Posts: 32
Joined: Fri 22 Sep 2006 08:32

MySQL Full Dump

Post by a.alekizoglou » Fri 24 Jan 2014 11:51

For MySQL the UniDump does not export triggers, procedures and functions. I've made some changes on MyServicesUni.pas to support exporting those objects as well.

AlexP, let me know how to send them to you, so that you can study if you want to include them in the next UniDAC version.

stlcours
Posts: 33
Joined: Wed 14 Sep 2011 20:22

Re: MySQL Full Dump

Post by stlcours » Fri 24 Jan 2014 12:12

Just Post here and he will see. thanks.

a.alekizoglou
Posts: 32
Joined: Fri 22 Sep 2006 08:32

Re: MySQL Full Dump

Post by a.alekizoglou » Fri 24 Jan 2014 12:26

Well, I think it would not be appropriate to post a 1800 lines of code MyServicesUni.pas has, just to show some changes.

AlexZ might want me to send an email with the file.

maltseff
Posts: 5
Joined: Mon 10 May 2010 04:08

Re: MySQL Full Dump

Post by maltseff » Mon 10 Feb 2014 06:47

a.alekizoglou
Could you share this code?

a.alekizoglou
Posts: 32
Joined: Fri 22 Sep 2006 08:32

Re: MySQL Full Dump

Post by a.alekizoglou » Mon 10 Feb 2014 07:29

Sure,

here it is a zip file containing only MyServicesUni.pas in UniDAC\Source\UniProviders\MySQL\MyServicesUni.pas Changes are marked with \\QUALISYS

Beware, MySQL user must have access to mysql table in order to read procedures and triggers. This might have been the reason why DevArt hasn't implemented that in their code :?:

https://dl.dropboxusercontent.com/u/6632864/UniDAC.zip

maltseff
Posts: 5
Joined: Mon 10 May 2010 04:08

Re: MySQL Full Dump

Post by maltseff » Mon 10 Feb 2014 08:33

Ok. Thanks.
By the way it would be good to add props like
prBackupTriggers, prBackupStoredProcedures in order to make this configurable.
Anyway this is a good candidate for adding to UniDAC.

I've voted already for the idea
http://devart.uservoice.com/forums/1046 ... at-it-can-

Nanolo
Posts: 2
Joined: Thu 03 Nov 2016 14:59

Re: MySQL Full Dump

Post by Nanolo » Thu 03 Nov 2016 15:22

Escuse me for asking, is this solution still avaiable? The link do not works. Doesn't seem to be possible, for the moment, to implement it with the original component. Am I misunderstanding something?

a.alekizoglou
Posts: 32
Joined: Fri 22 Sep 2006 08:32

Re: MySQL Full Dump

Post by a.alekizoglou » Thu 03 Nov 2016 15:29

Nanolo,

I have made changes to MyServicesUni.pas to backup Triggers and Stored Procs/Functions.

You are correct the dropbox is not working. I suppose devs should have implemented this functionality to newer versions of UniDAC.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: MySQL Full Dump

Post by ViktorV » Fri 04 Nov 2016 09:23

At the moment UniDAC, unlike MyDAC, doesn't support this functionality. If the proposal https://devart.uservoice.com/forums/104 ... at-it-can- gets a lot of votes we will consider its implementation.

Post Reply