本文介绍了Windows 7 64bit上的Delphi XE6,FireDAC找不到libmysql.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与和此

有一些事实可以解决此问题.-Delphi IDE是32位应用程序,因此我需要libmysql.dll(32位版本)而不是64位版本.-libmysql.dll版本不依赖于我以前误解的MySQL服务器本身- C:\ Windows \ SysWOW64 等效于 C:\ Windows \ System32 ,但它是存储32位应用程序(例如Delphi)的系统dll的地方

因此,我将 libmysql.dll (32位版本)放置在 C:\ Windows \ SysWOW64 上,终于解决了该问题.

I have a little different question from Delphi XE5 FireDAC Error: Cannot load vendor library libmysql.dll or libmysqld.dll

I'm evaluating Delphi XE6 on Windows 7 64bit, I wish to use FireDAC to connect to MySQL database.

I have downloaded libmysql.dll and install the file in C:\Windows\SYSTEM32\.

After trying to set TFDConnection.Active to true during designed time, I got error dialog as displayed below.

So I tried to use TFDPyhsMySQLDriverLink, I have set TFDPyhsMySQLLink.VendorLib to C:\Windows\System32\libmysql.dll, and set TFDConnection.DriverName to point to TFDPyhsMySQLLink.DriverID instead, but I got error dialog as displayed below.

I have tried to place libmysql.dll at C:\Windows\System32\bin but the error dialog still the same as displayed above.

Please guide me what to do to fix this problem.

解决方案

With carefully reading this comment and this comment

There are a few facts to fix the problem.- Delphi IDE is a 32 bit application so I need libmysql.dll (32 bit version) instead of 64 bit version.- libmysql.dll version not depending on the MySQL server itself as I used to misunderstood- C:\Windows\SysWOW64 is equivalent to C:\Windows\System32 but it's the place to store system dll for the 32 bit Application (like Delphi)

So I've placed the libmysql.dll (32 bit version) at C:\Windows\SysWOW64, finally the problem is fixed.

这篇关于Windows 7 64bit上的Delphi XE6,FireDAC找不到libmysql.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 00:36