c 连接mysql dll无法读取,无法加载供应商库libmysql.dll或libmysqld.dll

I want to use MYSQL in delphi xe10 with fireDAC.

So, FDConnection on the form, then input basic information about my mysql db.

But when I try to connect, there is an error

"cannot load vendor library libmysql.dll or libmysqld.dll"

I read embaradeco manual and I have been tried

1. copy libMySQL.dll to my “c:\program files (x86)\Embarcadero\Studio\\bin” : fail(That means cannot load db data, still got error)

2. specify path in FDDrivers.ini

[MySQL] VendorLib=\libmysql.dll :fail

So, I'm curious what else I have to check. There must be something I missed.

Anyone can help?

解决方案

I solved this problem myself.

First, I should know there are 32bit dll and 64bit dll separately.

I used 64bit dll and got error. So, I use 32bit dll

I got files from http://dev.mysql.com/downloads/mysql/

Copy it to Program Files(x86)/Embarcadero/Studio/17.0/bin

then I got success message.

Additionally, mariaDB also works fine.

**CAUTION

In the link, Author doesn't recommend copy file to .../bin directory. But My case, I feel fine till now.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值