Could not load libmysql.dll cbuilder 6 embedded

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
eldonfsr
Posts: 6
Joined: Thu 22 Nov 2007 19:05

Could not load libmysql.dll cbuilder 6 embedded

Post by eldonfsr » Thu 22 Nov 2007 19:45

Hi i doing test of mysql embedded but when i active that always send this message could dont load libmyslq.dll make sure your path or put such in main unit, i put such dll where i have my application but i dont get work this, i dont what i can do to solve i have mysql 4.1.22, pls can help me...


bye.
Fernando Sandoval

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

Post by Antaeus » Fri 23 Nov 2007 08:46

I tested this issue with the last MyDAC (5.20.0.12) and found no problems.
Please specify, in what cases do you get this error:
- launching the program from IDE (using the F9 button);
- launching the program without IDE;
- at design time.

What component do you use for connection, TMyConnection or TMyEmbConnection?

eldonfsr
Posts: 6
Joined: Thu 22 Nov 2007 19:05

An desing time and after run project

Post by eldonfsr » Fri 23 Nov 2007 16:55

This message apper when on desing time and also after pres f9 in eveny show i put activate of conection also here apper such message, thanks for your attention...


bye.
Fernando Sandoval

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

Post by Antaeus » Mon 26 Nov 2007 15:24

What edition of MyDAC do you use (Trial/Standard/Professional)?
Are you able to connect to the standard MySQL server from your application? If you are not, what error messages do you see?

eldonfsr
Posts: 6
Joined: Thu 22 Nov 2007 19:05

Post by eldonfsr » Thu 29 Nov 2007 01:23

I using mydac trial.

eldonfsr
Posts: 6
Joined: Thu 22 Nov 2007 19:05

This the message

Post by eldonfsr » Thu 29 Nov 2007 01:30

Mysqlclient could not be loaded, please place libmysql.dll file to system folder.....


such dll is on the same folder of my system. my.ini also in on same folder.

i get conect mysql as local host in normal connection but not as embedded server..


bye.
Fernando

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

Post by Antaeus » Thu 29 Nov 2007 08:20

To connect to MySQL Embedded Server, you should place the libmysqld.dll file (in your error message the libmysql.dll file was mentioned) into your application's folder. Place the TMyEmbConnection component onto the form and provide settings to connect to a database. You can also connect to MySQL Embedded Server using the TMyConnection component with the Embedded option set to True.
MyDAC does not use the my.ini file.
Last edited by Antaeus on Fri 30 Nov 2007 12:27, edited 1 time in total.

eldonfsr
Posts: 6
Joined: Thu 22 Nov 2007 19:05

Is the same problem

Post by eldonfsr » Fri 30 Nov 2007 03:28

I make a test with TmyConnection with embedded option but when i make active that send me same message, but it connect well when in disable embedded option.


thanks.
Fernando Sandoval

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

Post by Antaeus » Fri 30 Nov 2007 12:38

Could you send me a complete small test project including the embedded server library, and the required folders (the share and data folders)?
You can use mydac*crlab*com.
Also supply me the following information:
- exact version of MyDAC. You can see it in the About sheet of TMyConnection Editor;
- exact version of your IDE.

Post Reply