现在的位置: 首页产品技术>正文
解决错误sphinx: 1st column (docid) MUST be unsigned integer or bigint’ (errno: -1)
2009年12月24日 产品技术 暂无评论

执行以下,
CREATE TABLE IF NOT EXISTS sphinxc (
id int(11) NOT NULL,
weight int(11) NOT NULL,
query varchar(255) NOT NULL,
INDEX(query)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://localhost:3312/yicike_search_ctitle';
错误如下:
sphinx: 1st column (docid) MUST be unsigned integer or bigint' (errno: -1)

解决如下:

CREATE TABLE IF NOT EXISTS sphinxc (
id int(10) unsigned not null,
weight int(11) NOT NULL,
query varchar(255) NOT NULL,
INDEX(query)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://localhost:3312/yicike_search_ctitle';

原创文章,转载请注明: 转载自读思客

本文链接地址: 解决错误sphinx: 1st column (docid) MUST be unsigned integer or bigint’ (errno: -1)

给我留言

留言无头像?


×
腾讯微博