Проблемы при установке
-
SUSE 11.4, Kernel 2.6..., MySQL Community Server 5.1.57, не могу собрать базу командой /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql, права есть, сервер mysql запущен, таблица создана, конфиг прописан. Получаю:
Initializing database...
SQL query failed (Specified key was too long; max key length is 1000 bytes):
CREATE TABLE images
(
guid varchar(36) not null,
name varchar(255) not null,
category varchar(255) not null,
mimetype varchar(32) not null,
protected integer default 0,
PRIMARY KEY(guid),
UNIQUE(name, category)
)
Database initialization failedВерсия netxms - netxms-1.1.6. Что примечательно - 1.0.13 на такую же систему встаёт нормально.
Посоветуйте? -
-
Это старая проблема MySQL с utf-8, баг висит с 2004 года (http://bugs.mysql.com/bug.php?id=4541).
Можно попробовать так:
CREATE TABLE images ( guid varchar(36) not null, name varchar(255) not null, category varchar(255) not null, mimetype varchar(32) not null, protected integer default 0, PRIMARY KEY(guid), UNIQUE(`name`(165), `category`(165)) ) -
-
V versii 1.0.13 net tablici images. Pri upgrade skoree vsego vilezet ta-ze oshibka, kogda nxdbmgr popitaetsja sozdat' etu tablicu.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login