Thank you for all the guidance and instructions. Unfortunately I am not able to connect.
I am using the following:
OS: Windows 11
MariaDB 10.6.16 server running on Linux Ubuntu 22.04 accessed via LAN
In Lazarus, I have dropped a TMySQL57Connection object onto the form. Settings are as follows (see screenshot):
Hostname: [ip address of server on LAN]
Port: [Port of MariaDB on server]
Username and password entered
Database name entered
I have copied libmysql.dll to the project folder. It is a dll for version 5.7.41.0 which I obtained from a Wamp server installation. (I was unable to find a dll file on the MySQL website.)
When I try to connect to the server using the Connected property of the TMySQL57Connection object in the Object Inspector I get the error
"Can not load default MySQL library 'libmysql.dll' or 'libmysql.dll'). Check your installation."
I have tried using the MariaDB client library (libmariadb.dll), which I have previous found to work, even with a MySQL database, but it gives the same error.
It doesn't matter whether I tick "SkipLibraryVersionCheck" or not. In both cases I get the same error.
I would be most grateful for guidance on fixing this problem.
Thank you!