Recent

Author Topic: Where to put libmysql.dll to make it work with my project?  (Read 3023 times)

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Where to put libmysql.dll to make it work with my project?
« on: June 14, 2020, 04:34:41 am »
Hi friends of Lazarus and Freepascal.
I try to connect to my MariaDB but it fail by errormessage libmysql.dll missing!
I downloaded MySQL 5.7 but there is no libmysql.dll with it!!!
Can someone give me a valid link direct to what I should download to get this errormessage disappear?
Should I use MySQL 5.7 or?

Thanks in advance
Bob
« Last Edit: June 14, 2020, 07:38:57 am by Robert William Blennerhed »
Rob

dsiders

  • Hero Member
  • *****
  • Posts: 1080
Re: SQLConnector1 connect Can't load MySQL Library libmysql.dll missing?
« Reply #1 on: June 14, 2020, 05:26:36 am »
Hi friends of Lazarus and Freepascal.
I try to connect to my MariaDB but it fail by errormessage libmysql.dll missing!
I downloaded MySQL 5.7 but there is no libmysql.dll with it!!!
Can someone give me a valid link direct to what I should download to get this errormessage disappear?
Should I use MySQL 5.7 or?

Thanks in advance
Bob

It is in the lib directory.

You can get Myql from here: https://dev.mysql.com/downloads/mysql/5.7.html. I grabbed the .ZIP archive.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: SQLConnector1 connect Can't load MySQL Library libmysql.dll missing?
« Reply #2 on: June 14, 2020, 05:33:48 am »
Thanks dsiders but,where should i put the files i extracted?

I try to use MySQL57Connection1 but it's the same error!

Thanks in advance
Bob
« Last Edit: June 14, 2020, 07:40:38 am by Robert William Blennerhed »
Rob

devEric69

  • Hero Member
  • *****
  • Posts: 648
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5481
  • Compiler Developer
Re: SQLConnector1 connect Can't load MySQL Library libmysql.dll missing?
« Reply #4 on: June 14, 2020, 10:50:00 am »
Thanks dsiders but,where should i put the files i extracted?

I try to use MySQL57Connection1 but it's the same error!

If you want to use it with your compiled application you need to put the library next to your executable, if you want to use it while using the IDE's designer, then you need to put it next to the lazarus.exe. Or you put the library somewhere in your PATH environment variable.

 

TinyPortal © 2005-2018