Embedded Server - MyDump includes "use mysql"

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rsandies
Posts: 9
Joined: Mon 14 Aug 2006 12:55

Embedded Server - MyDump includes "use mysql"

Post by rsandies » Thu 20 Dec 2007 14:43

When backing up with MyDump using the database option, the generated script has a "use mysql;" preceding the drop database statement. This causes an error when using the embedded server. Is there a way to prevent writing the use statement?

DAC 5.20.0.12, MySQL 4.1 or 5.1

And by-the-way, MySQL 5.1.22-rc seems to work with this build, at least with MyISAM tables. Instability has been emphasized by the Core team. Are there continuing problems?

Thank you

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 21 Dec 2007 11:18

Now MyDump does not provide such functionality, but we will consider possibility to prevent writing the USE statement.
Note, in spite of the error MyDump continues to execute all statements in the script.

rsandies
Posts: 9
Joined: Mon 14 Aug 2006 12:55

Post by rsandies » Fri 21 Dec 2007 15:37

Thank you for looking at this. Working around the error is not difficult, but it would be nice to avoid.

Post Reply