---
title: "How to solve error locating libmysqlclient_r.so file for MySQL or MariaDB"
description: "Error locating libmysqlclient_r.so occurs when SQL-Toolkit plugin cannot find MySQL client libraries. Installing the correct database client or creating a symbolic link resolves the issue for Netprobe versions GA5.0.0 and above."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360011218958-geneos-how-to-solve-error-locating-libmysqlclient-r-so-file-for-mysql-or-mariadb/index.html"
---
## Related to

Netprobe database libraries, SQL-Toolkit plugin error, SQL-Toolkit plugin fail, libmysqlclient.so, libmysqlclient\_r.so

### Problem

This article provides common solutions for the below error when you tried using SQL-Toolkit plugin to connect MySQL or MariaDB databases.

```
<Wed Jul 1 10:32:34> ERROR: SQL-TOOLKIT Fail -
libmysqlclient_r.so: cannot open shared object file: No such file or directory
libmysqlclient_r.so.15: cannot open shared object file: No such file or directory
libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
libmysqlclient_r.so.18: cannot open shared object file: No such file or directory
DBMS API Library loading fails
This library is a part of DBMS client installation, not SQLAPI++
Make sure DBMS client is installed and
this required library is available for dynamic loading
```

### Possible Causes

### Possible Cause 1

The SQL-Toolkit plugin requires the database client libraries for connecting to MySQL or MariaDB databases. This is not included in the Netprobe download package. User may not have the database client installed properly.

### Possible Cause 2

You may be using an outdated Geneos version with a newer MySQL or MariaDB database. The database library filename was changed to **libmysqlclient.so**, and the Netprobe is looking for **libmysqlclient\_r.so** (note the difference in **\_r** suffix).

### Possible Solutions

### Possible Solution 1

Please refer to the SQL-Toolkit plugin documentation, and make sure the database client has been installed on the Netprobe machine. If the database client has been installed as a different user account from the Netprobe, user should check any permission issues.

### Possible Solution 2

(a) Please check that you are running Netprobe version GA5.0.0 or later. (Recommended)

(b) As a workaround, you may try to create a symbolic link from libmysqlclient\_r.so to libmysqlclient.so in the client library folder. The command to be run in Linux should look similar to this one:

```
ln -s /usr/lib64/mysql/libmysqlclient.so /usr/lib64/mysql/libmysqlclient_r.so
```

## Further Information

- [Release Notes and Compatibilities](https://docs.itrsgroup.com/docs/all/release-notes/index.html)
- [SQL-Toolkit plugin documentation](https://docs.itrsgroup.com/docs/geneos/current/collection/sql-toolkit/index.html)
- [Geneos - How to solve database client installation issues in SQL-Toolkit plugin](https://docs.itrsgroup.com/docs/faq/geneos/360010913997-geneos-how-to-solve-database-client-installation-issues-in-sql-toolkit-plugin/index.html)


