Recent

Author Topic: problems accessing mySQL-DB on other machine [SOLVED]  (Read 236 times)

hy

  • Full Member
  • ***
  • Posts: 224
problems accessing mySQL-DB on other machine [SOLVED]
« on: February 08, 2025, 11:48:08 am »
Hi, I switched from Debian sid to stable (MX) and now lazarus complains during mysql-access to database:
Code: Pascal  [Select][+][-]
  1. Can not load default MySQL library ("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation.
mySQL is installed in MX and the database is up and running (on another machine)
the file libmysqlclient* is nowhere to be found.
any help apreciated
==============
[EDIT:] the solution was to install libmariadb-dev
Code: Pascal  [Select][+][-]
  1. apt install libmariadb-dev
Set a symlink to the missing libmysqlclient
Code: Pascal  [Select][+][-]
  1. ln /usr/lib/x86_64-linux-gnu/libmariadb.so.3 /usr/lib/libmysqlclient.so
Change the property of TMySQL57connection SkipLibraryVersionCheck := true;
« Last Edit: February 08, 2025, 04:38:38 pm by hy »
_____
***hy

 

TinyPortal © 2005-2018