Skip navigation links

MySQL Forums :: Connector/C (libmysql) :: Delphi 7 Windows 7 Zeos Databse libmysql.dll solution


Advanced Search

Delphi 7 Windows 7 Zeos Databse libmysql.dll solution
Posted by: Tim Oliver ()
Date: April 08, 2011 08:38AM

Environment:
Delphi 7
Windows 7 64 bit
MySQL 5.5
Zeos Database Tools

Problem:
When trying to connect to a newly installed MySQL database from a Delphi 7 program using the Zeos Database tools, the connection fails.

Error Message:
"None of the dynamic libraries can be found: libmysql51.dll, libmysql50.dll, libmysql.dll"

Root Cause Analysis:
When a 64 bit versio of MySQL is installed, a 64 bit version of the libmysql.dll is generated. This dll is incompatible with Delphi 7 which is a 32 but application.

Solutions:
Option 1) Install the same release of MySQL but the 32 bit version on a different computer. Copy the 32 bit libmysql.dll to the executable directory of the Delphi program that is failing to connect. Now you should be able to connect.

Option 2) Uninstall the 64 bit version of MySQL and install the 32 bit version of MySQL on the computer were the Delphi program is executing.

Options: ReplyQuote


Subject Views Written By Posted
Delphi 7 Windows 7 Zeos Databse libmysql.dll solution 13697 Tim Oliver 04/08/2011 08:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.