ERROR LOAD DATABASE MYSQL

Started by gpd, September 01, 2021, 10:14:23 PM

Previous topic - Next topic

gpd

Hello,

We are not able to upload the mysql database versio 8.0.26, SO Red Hat Linux 8.2, it shows the error:

Unable to load database driver module "mysql.ddr": libmysqlclient.so.21: cannot open shared object file: No such file or directory.

Below is the debug log:

[root@vmnetxms bin]# ./netxmsd -D9
Using configuration file "/etc/netxmsd.conf"
2021.09.01 15:45:18.795 *D* [                   ] LIB directory set to /produtos/netxms/lib/netxms
2021.09.01 15:45:18.795 *I* [                   ] Code page set to ISO8859-1
2021.09.01 15:45:18.797 *D* [dload              ] DLOpen: file="/produtos/netxms/lib/netxms/linux.nsm", module=0x1285250
2021.09.01 15:45:18.797 *D* [dload              ] DLGetSymbolAddr: module=0x1285250, symbol=__NxSubAgentGetIfList, address=0x7f16158117a0
2021.09.01 15:45:18.797 *D* [dload              ] DLGetSymbolAddr: module=0x1285250, symbol=__NxSubAgentGetArpCache, address=0x7f16158117d0
2021.09.01 15:45:18.797 *I* [                   ] Platform subagent "/produtos/netxms/lib/netxms/linux.nsm" successfully loaded
2021.09.01 15:45:18.797 *D* [dload              ] DLOpen: file="/produtos/netxms/lib/netxms/dbdrv/mysql.ddr", module=(nil)
2021.09.01 15:45:18.797 *E* [db.drv             ] Unable to load database driver module "mysql.ddr": libmysqlclient.so.21: cannot open shared object file: No such file or directory

Filipp Sudanov

Was netxms compiled? Try adding --with-mysql to ./configure command. There's also ./configure --help that might be helpful.

gpd

#2
Hi Sudanov.

Yes, it was compiled with the following commands :

./configure --prefix=/produtos/netxms --with-server --with-mysql --with-agent --disable-ssh --disable-mqtt

./make install -I /produtos/netxms

./make -I /produtos/netxms

Filipp Sudanov

Try installing mysql-libs package.

Also, it could be easier to use Debian or Ubuntu, as we provide packages for these systems.

gpd

hello,

Sudanov

It worked . Thanks ...