不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2019-04-09 14:57:13  修改时间:2023-02-01 07:54:43  分类:C#/JavaFX  编辑

Delphi 10.3 通过 FireDAC 访问MySQL时报错:

[FireDAC][Phys][MySQL]-314. Cannot load vendor library [libmysql.dll or libmysqld.dll]. 系统找不到指定的文件。
Hint: check it is in the PATH or application EXE directories, and has x86 bitness.
Failed to load DBMS client !

解决方案:

1、下载 libmysql.dll

2、复制 libmysql.dll 到 RAD 的安装目录的bin文件夹下,如:D:\delphi\RAD\bin

 32位的拷贝到D:\delphi\RAD\bin,64位的拷贝到D:\delphi\RAD\bin64