erorr on initializing database setp. debian install

Started by ant2ne, April 19, 2012, 05:39:54 PM

Previous topic - Next topic

ant2ne

$ /usr/bin/nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql
NetXMS Database Manager Version 1.0.12

Unable to load and initialize database driver "/usr/local/lib/libnxddr_mysql.so"
what now?

Victor Kirhenshtein

Hi!

Is netxms-server-mysql package installed? If yes, what is output of


ldd /usr/local/lib/libnxddr_mysql.so


?

Also, we will build Debian packages for version 1.2.0 in few days.

Best regards,
Victor

ant2ne


Victor Kirhenshtein

It's available on NetXMS download page. But I made an assumption that you was using deb packages. If you was building from source, then you have to run configure with --with-mysql command line option to build MySQL driver.

Best regards,
Victor

Victor Kirhenshtein

Also, if it is from deb package, correct path to driver will be /usr/lib/libnxddr_mysql.so.

Best regards,
Victor

ant2ne

yes,.. deb packages. These are the packages I've installed...
netxms-agent_1.0.12_amd64.deb
netxms-base_1.0.12_amd64.deb
netxms-server_1.0.12_amd64.deb
Perhaps I did something wrong. Which should I re-install?

ant2ne@vmhost:~$ ls /usr/lib/*mysql*
/usr/lib/libmysqlclient_r.so.15      /usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient_r.so.15.0.0  /usr/lib/libmysqlclient.so.15.0.0
/usr/lib/libmysqlclient_r.so.16      /usr/lib/libmysqlclient.so.16
/usr/lib/libmysqlclient_r.so.16.0.0  /usr/lib/libmysqlclient.so.16.0.0

/usr/lib/mysql:
plugin



Victor Kirhenshtein

You need netxms-server-mysql_1.0.12_amd64.deb in addition.

Best regards,
Victor

ant2ne

I installed that and that error went away. Now when I try to connect my console (running on a different Windows machine) I get an incompatible protocol error.

Victor Kirhenshtein

That's because you try to use console version that is different from server's version. I'm just created deb packages for 1.2.0, I recommend to try them.

Best regards,
Victor