<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[error install netxms on debian 9 database]]></title><description><![CDATA[<p dir="auto">Hello<br />
I installed version 2.2.4 on Debian 9<br />
There is a problem installing the database<br />
By installing the following command, I installed the miradb installed<br />
<strong>apt-get install mysql-server</strong></p>
<p dir="auto">I built the database with the following command<br />
<strong>mysql -u root -p mysql<br />
mysql&gt; CREATE DATABASE netxms;<br />
mysql&gt; GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'netxms';<br />
mysql&gt; \q</strong><br />
And I also want to install the database with the following error that I encounter<br />
<strong>root@debian:~# nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql<br />
NetXMS Database Manager Version 2.2.4 Build 9506 (2.2.4) (UNICODE)</strong></p>
<p dir="auto"><strong>Initializing database...<br />
SQL query failed (Specified key was too long; max key length is 767 bytes):<br />
CREATE TABLE userdb_custom_attributes (   object_id integer not null,   attr_name varchar(255) not null,   attr_value longtext not null,   PRIMARY KEY(object_id,attr_name) )<br />
Database initialization failed</strong></p>
<p dir="auto">The version number of the database used in my system is automatically installed with the above command</p>
<p dir="auto">root@debian:~# mysql<br />
Welcome to the MariaDB monitor.  Commands end with ; or \g.<br />
Your MariaDB connection id is 9<br />
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1</p>
<p dir="auto">Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.</p>
<p dir="auto">Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</p>
<p dir="auto">MariaDB [(none)]&gt; SHOW VARIABLES LIKE "%version%";<br />
+-------------------------+--------------------------+<br />
| Variable_name           | Value                    |<br />
+-------------------------+--------------------------+<br />
| innodb_version          | 5.6.36-82.1              |<br />
| protocol_version        | 10                       |<br />
| slave_type_conversions  |                          |<br />
| version                 | 10.1.26-MariaDB-0+deb9u1 |<br />
| version_comment         | Debian 9.1               |<br />
| version_compile_machine | x86_64                   |<br />
| version_compile_os      | debian-linux-gnu         |<br />
| version_malloc_library  | system jemalloc          |<br />
| version_ssl_library     | YaSSL 2.4.2              |<br />
| wsrep_patch_version     | wsrep_25.19              |<br />
+-------------------------+--------------------------+<br />
10 rows in set (0.00 sec)</p>
<p dir="auto">please guide me</p>
]]></description><link>https://forum.netxms.org/topic/5527/error-install-netxms-on-debian-9-database</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:17:28 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5527.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Apr 2018 14:58:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error install netxms on debian 9 database on Wed, 04 Apr 2018 07:54:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I suppose it has something to do with selected database encoding, because it says that length of integer + varchar(255) key exceeds 767 bytes. As a workaround try to edit init script and reduce size of attr_name column in userdb_custom_attributes to 127 (you will not encounter any issues during server operation).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24096</link><guid isPermaLink="true">https://forum.netxms.org/post/24096</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 04 Apr 2018 07:54:55 GMT</pubDate></item></channel></rss>