Page 1 of 1

MySQL Full Dump

Posted: Fri 24 Jan 2014 11:51
by a.alekizoglou
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.

Re: MySQL Full Dump

Posted: Fri 24 Jan 2014 12:12
by stlcours
Just Post here and he will see. thanks.

Re: MySQL Full Dump

Posted: Fri 24 Jan 2014 12:26
by a.alekizoglou
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.

Re: MySQL Full Dump

Posted: Mon 10 Feb 2014 06:47
by maltseff
a.alekizoglou
Could you share this code?

Re: MySQL Full Dump

Posted: Mon 10 Feb 2014 07:29
by a.alekizoglou
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

Re: MySQL Full Dump

Posted: Mon 10 Feb 2014 08:33
by maltseff
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-

Re: MySQL Full Dump

Posted: Thu 03 Nov 2016 15:22
by Nanolo
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?

Re: MySQL Full Dump

Posted: Thu 03 Nov 2016 15:29
by a.alekizoglou
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.

Re: MySQL Full Dump

Posted: Fri 04 Nov 2016 09:23
by ViktorV
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.