Forum > Portuguese

Cannot load default MySQL library (libmysql.dll)


Pessoal boa noite.

Instalei o Lazarus 64 no meu pc, e gostaria de conectar a um banco mysql.

Proém, quando utilizo o SQLConecctor e tento mudar a propriedade connected para true, me apresente o erro:

"Cannot load default MySQL library (libmysql.dll)"

Alguém já passou por este problema? Como resolveu?


--- Quote from: elucasfreitas on April 15, 2017, 12:54:12 am ---"Cannot load default MySQL library (libmysql.dll)"

--- End quote ---

That probably means your app can't find the library, either because MySQL is not installed or is not installed on the system path or the library is not in the same directory as the app executable.

Hi phill.
thanks for help...

The problem has been solved, but the SQLConnector have support up to Mysql5.6 and my server have 5.7.14  :-(.. still thinking what to do...

Well, I did download the libmysql.dll for  64x, so I moved to C:\Windows\System32\
I did reboot all system... and start lazarus again... and all work fine...

Either way... thanks a lot

diego bertotti:

I had the same problem.

I was finally able to fix it, by copying libmysql.dll from the mysql lib folder. In my case, "D:\mysql57\lib", and you need to pay attention to binary versions. OS, .exe and dll must be all 64 or all 32 bit.

I used component 5.7, with dll version 5.7, but my mysql installation is version 8, (xampp) and it's working!


[0] Message Index

Go to full version