Error "Cannot run second Embedded Server instance for a single data folder"

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
weitech
Posts: 9
Joined: Mon 03 Apr 2006 15:30

Error "Cannot run second Embedded Server instance for a single data folder"

Post by weitech » Fri 14 Apr 2006 09:51

I am trying to connect to my embedded server, everytime I add a DB Control Component and run I get this message "Cannot run second Embedded Server instance for a single data folder".

But if I save the project and close out of borland c++ builder 6, and delete my project .tds file and run C++ Builder again and I will not get that error message again, until I add another components either a DB Control or MyDACs.

Why is this happening?

I am using libmysqld.dll from MySQL server 4.1.

All my setup and settings are correct.

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

Post by Antaeus » Fri 14 Apr 2006 14:03

This error message means that you try to establish several connections to single database. It can happen in following situations:
- when you try to connect to one database using two instances of TMyEmbConnection in the same application or in the different applications
- when you have connected instance of TMyEmbConnection at design time and attempt to connect to the database at runtime from the same application

weitech
Posts: 9
Joined: Mon 03 Apr 2006 15:30

Post by weitech » Fri 14 Apr 2006 17:24

Antaeus wrote:This error message means that you try to establish several connections to single database. It can happen in following situations:
- when you try to connect to one database using two instances of TMyEmbConnection in the same application or in the different applications
- when you have connected instance of TMyEmbConnection at design time and attempt to connect to the database at runtime from the same application
I am using only one instance of TMyEmbConnection to connect to one database only.

In Design time the connection is set to FALSE, and run time is set to TRUE.

I can't seem to work out what else could cause this...

Please help.

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

Post by Antaeus » Mon 17 Apr 2006 13:29

We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small sample to demonstrate it.

Also supply us following information
- Steps to reproduce the problem just after C++Builder was started
- Exact version of C++ Builder
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL embedded server. You can see it in Info sheet of TMyConnection Editor

Post Reply