Recent

Author Topic: Mysterious Lazarus/MySQL problem  (Read 372 times)

JRBleau

  • Newbie
  • Posts: 3
Mysterious Lazarus/MySQL problem
« on: June 01, 2025, 10:07:17 pm »
Hello, I have a mysterious problem.

My project raised exception class EInOutError with message:
"Can not load default MySQL library ("libmysql.dll" or "libmysql.dll"). Check your installation"

However, there's no problem with the connection at design time: I even see the data, but at run time, I get the message even when I don't explicitly load the library (I also get the message when I do explicitly load it.)

Has anyone else had this experience and does anyone know what to do about it?

Lazarus ver. 3.8; FPC ver: 3.2.2 x86_64-win64-win32/win64
Connection: TMySQL80Connection
MySQL 32/64-bit
libmysql.dll product version 8.0.42.0 (saved in the project directory)

TIA,

John Bleau

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12326
  • FPC developer.
Re: Mysterious Lazarus/MySQL problem
« Reply #1 on: June 01, 2025, 11:08:16 pm »
Are the IDE and the application both 64-bit ? if not, they require different DLLs

JRBleau

  • Newbie
  • Posts: 3
Re: Mysterious Lazarus/MySQL problem
« Reply #2 on: June 02, 2025, 01:11:38 am »
Thank you. I downloaded the latest version of Lazarus and it now works.

 

TinyPortal © 2005-2018