MySQLLib included in exe

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
marsheng
Posts: 62
Joined: Thu 10 May 2012 10:51

MySQLLib included in exe

Post by marsheng » Thu 12 Jul 2012 01:34

I may be wrong here but I sure that the original EXE I created did not need the MySqlLib library DLL when running on a remote machine. Now the remote machine asks for MySqlLib.

Interstingly the file size has changed from 3mb to 2mb.

Any suggestions on what I have changed ?

AndreyZ

Re: MySQLLib included in exe

Post by AndreyZ » Thu 12 Jul 2012 10:58

Hello,

MyDAC doesn't build the libmysql.dll MySQL client library into applications. MyDAC doesn't use the libmysql.dll library by default, it connects to MySQL server in the direct mode. This problem occurs because you set the TMyConnection.Options.Direct property to False. In this case, MyDAC uses the libmysql.dll MySQL client library instead of connecting in the direct mode. To solve the problem, you should set the TMyConnection.Options.Direct property to True. Please note that it's better to use direct connection, because in this case you don't need libmysql.dll and get higher performance.

Post Reply