MySQL Embedded dumping empty procedures

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 Embedded dumping empty procedures

Post by a.alekizoglou » Wed 30 Oct 2013 16:27

I am using UniDAC 5.1.4 with MySQL Embedded server 5.6.14

If I run

Code: Select all

SHOW CREATE PROCEDURE someproc
the resultset has every field filled in except the Create Function, where the SQL statement for creating the procedure is.

I've open the same DB with dbForge and run show create procedure again, and everything is filled in correctly. The same stand for functions as they rely on the same logic.

AndreyZ

Re: MySQL Embedded dumping empty procedures

Post by AndreyZ » Thu 31 Oct 2013 10:34

The "SHOW CREATE PROCEDURE" and "SHOW CREATE FUNCTION" statements require you to be the owner of the routine or have SELECT access to the mysql.proc table. If you do not have privileges for the routine itself, the value displayed for the Create Procedure or Create Function field will be NULL. You can find the information about this at http://dev.mysql.com/doc/refman/5.6/en/ ... edure.html
Please make sure that you are using the same user name and password in both dbForge Studio for MySQL and UniDAC. If you did not enable credentials usage for your MySQL embedded, make sure that the user name and password are blank.

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

Re: MySQL Embedded dumping empty procedures

Post by a.alekizoglou » Fri 01 Nov 2013 13:37

Thanks Andrey,

That was the problem. I've read that yesterday and saw that the embedded DB was created with blank username/password, and I was using a non-blank username/password for UniDump.

BTW, I've altered UniDump to include procedures and triggers for dumping MySQL DB. Is there a specific reason you have not write this in the component?

AndreyZ

Re: MySQL Embedded dumping empty procedures

Post by AndreyZ » Mon 04 Nov 2013 09:16

For the time being, TUniDump does not support dumping procedures and triggers. We have such request at our UserVoice page at http://devart.uservoice.com/forums/1046 ... at-it-can- . You can vote for it there. Suggestions with many votes will be implemented faster.

Post Reply