NetXMS Support Forum

English Support => General Support => Topic started by: ant2ne on April 19, 2012, 05:39:54 PM

Title: erorr on initializing database setp. debian install
Post by: ant2ne on April 19, 2012, 05:39:54 PM
$ /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?
Title: Re: erorr on initializing database setp. debian install
Post by: Victor Kirhenshtein on April 19, 2012, 06:22:38 PM
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
Title: Re: erorr on initializing database setp. debian install
Post by: ant2ne on April 19, 2012, 07:53:51 PM
where do I get  netxms-server-mysql  package?
Title: Re: erorr on initializing database setp. debian install
Post by: Victor Kirhenshtein on April 19, 2012, 11:22:05 PM
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
Title: Re: erorr on initializing database setp. debian install
Post by: Victor Kirhenshtein on April 19, 2012, 11:23:09 PM
Also, if it is from deb package, correct path to driver will be /usr/lib/libnxddr_mysql.so.

Best regards,
Victor
Title: Re: erorr on initializing database setp. debian install
Post by: ant2ne on April 20, 2012, 03:06:16 AM
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


Title: Re: erorr on initializing database setp. debian install
Post by: Victor Kirhenshtein on April 20, 2012, 12:53:11 PM
You need netxms-server-mysql_1.0.12_amd64.deb in addition.

Best regards,
Victor
Title: Re: erorr on initializing database setp. debian install
Post by: ant2ne on April 22, 2012, 06:07:52 PM
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.
Title: Re: erorr on initializing database setp. debian install
Post by: Victor Kirhenshtein on April 22, 2012, 07:28:56 PM
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