SQL Error: 1191 - Can't find FULLTEXT index matching the column list

安稳与你 提交于 2020-01-02 02:52:08

问题


I'm trying to solve this error :

1191 - Can't find FULLTEXT index matching the column list

Query:

SELECT t.*, t.username AS threadusername, u.username, 
MATCH (t.subject) AGAINST ('test123 test') AS relevance 
FROM 123test_threads t
LEFT JOIN 123test_users u ON (u.uid = t.uid) 
WHERE t.fid='2' AND t.tid!='4' AND t.visible='1' AND t.closed NOT LIKE 'moved|%' 
AND MATCH (t.subject) AGAINST ('test123 test') >= '2' 
ORDER BY t.lastpost DESC LIMIT 0, 5 

whene i try to create a new thread in my multiforums website.


回答1:


ALTER TABLE table ADD FULLTEXT index_name(column1);

Try this to add a full text index.



来源:https://stackoverflow.com/questions/18035795/sql-error-1191-cant-find-fulltext-index-matching-the-column-list

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!