Mysql error 1191: Can't find FULLTEXT index ..

Post Reply
S_Flash
Posts: 1788
Joined: Mon Mar 08, 2010 9:04 am
Contact:

Mysql error 1191: Can't find FULLTEXT index ..

Post by S_Flash »

(c) SmartCJ Pro V 2.1 Your Build 202111062024

С домена слейва приходит сообщения

Code: Select all

Mysql error 1191: Can't find FULLTEXT index matching the column list (SELECT SQL_CALC_FOUND_ROWS  gs.gallery_id, gs.thumb_id, gi.sponsor_id, gi.content_count, gi.content_type, gs.total_shows, gs.total_clicks, gs.total_ctr, gt.thumb_url, gd.*, gi.content_count, gi.crop_profile_id, gs.activation_date, gi.added_date, gi.duration, gi.url, gi.gallery_total_shows, gi.sponsor_id, gi.source_url, gi.custom_gallery  FROM rot_gallery_stats16 as gs   JOIN  rot_gallery_info as gi on gi.gallery_id = gs.gallery_id
JOIN  rot_gallery_data16 as gd on gd.gallery_id = gs.gallery_id
 JOIN rot_thumbs as gt on gt.thumb_id = gs.thumb_id 
			WHERE 1 = 1  AND gi.gallery_status = 'active'  AND gi.gallery_type = 0  and gs.best_thumb = 'yes'  and gs.group_id = 0  and MATCH (  gd.`alt`  ) AGAINST ('cum' IN BOOLEAN MODE)   ORDER BY  tested_thumb DESC,  gs.total_ctr DESC  LIMIT 360, 180# queryitems) 
Mysql error 1191: Can't find FULLTEXT index matching the column list (SELECT SQL_CALC_FOUND_ROWS  gs.gallery_id, gs.thumb_id, gi.sponsor_id, gi.content_count, gi.content_type, gs.total_shows, gs.total_clicks, gs.total_ctr, gt.thumb_url, gd.*, gi.content_count, gi.crop_profile_id, gs.activation_date, gi.added_date, gi.duration, gi.url, gi.gallery_total_shows, gi.sponsor_id, gi.source_url, gi.custom_gallery  FROM rot_gallery_stats16 as gs   JOIN  rot_gallery_info as gi on gi.gallery_id = gs.gallery_id
JOIN  rot_gallery_data16 as gd on gd.gallery_id = gs.gallery_id
 JOIN rot_thumbs as gt on gt.thumb_id = gs.thumb_id 
В какой именно таблице надо добавить FULLTEX индексы? Это только на мастере или на слейве тоже?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by admin »

rot_gallery_data16

база галер на мастере только
Don't forget to run script update
S_Flash
Posts: 1788
Joined: Mon Mar 08, 2010 9:04 am
Contact:

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by S_Flash »

А для слейвов особым способом добавляется FULLTEXT index?

На мастер базу добавлял индекс так

ALTER TABLE rot_gallery_data16 ADD FULLTEXT (`alt`, `description`);

mysql> SHOW CREATE TABLE rot_gallery_data16;
---
| rot_gallery_data16 | CREATE TABLE `rot_gallery_data16` (
`gallery_id` int unsigned NOT NULL,
`alt` varchar(255) NOT NULL,
`description` text NOT NULL,
`custom_var1` varchar(255) NOT NULL,
`custom_var2` varchar(255) NOT NULL,
`custom_var3` varchar(255) NOT NULL,
`gallery_slug` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`gallery_id`),
KEY `gallery_slug` (`gallery_slug`),
FULLTEXT KEY `alt` (`alt`,`description`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='Gallery data for http://www.blaporn.com/' |
---

Image

Индекс на мастере есть. ХЗ, почему продолжают сыпаться сообщения со слейвов как в старте топика об отсутствии индекса..

(c) SmartCJ Pro V 2.1 Your Build 202111062024 (Current build: 202111151658 Update available ) PHP version 7.2.34 Mysql Version: 8.0.25-15
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by admin »

можно попробовать тот же запрос выполнить сразу в базе
99% что это "ой не там сделал индекс"
Don't forget to run script update
S_Flash
Posts: 1788
Joined: Mon Mar 08, 2010 9:04 am
Contact:

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by S_Flash »

Получил сообщение на одном из слейвов http://www.yuckporn.com/ ((c) SmartCJ Pro V 2.1 Your Build 202111062024 )
Его мастер - http://www.exoticporntube.com/ ((c) SmartCJ Pro V 2.1 Your Build 202111062024)

Зашёл на его главную страницу, там таже картина. Копирую код SQL из ошибки выделенный рамкой:

Image

Проверил, что он слейв и к каой базе мастера присоединён:

Image

Законнектился ssh к базе, выбрал нужную у мастера:

Image

Проверил FULLTEXT индекс:

Image

Проверил индекс другим способом и тут же выполнил запрос, который получил в сообщении из ошибки в письме, предварительно отформатировав его переносами строк:

Image

Проверил ещё раз, только взял код из главной страницы yuckporn.com SCJ:

Image

Code: Select all

SELECT SQL_CALC_FOUND_ROWS gs.gallery_id, gs.thumb_id, gi.sponsor_id, gi.content_count, gi.content_type, gs.total_shows, gs.total_clicks, gs.total_ctr, gt.thumb_url, gd.*, gi.content_count, gi.crop_profile_id, gs.activation_date, gi.added_date, gi.duration, gi.url, gi.gallery_total_shows, gi.sponsor_id, gi.source_url, gi.custom_gallery FROM rot_gallery_stats17 as gs JOIN rot_gallery_info as gi on gi.gallery_id = gs.gallery_id JOIN rot_gallery_data17 as gd on gd.gallery_id = gs.gallery_id JOIN rot_thumbs as gt on gt.thumb_id = gs.thumb_id WHERE 1 = 1 AND gi.gallery_status = 'active' AND gi.gallery_type = 0 and gs.best_thumb = 'yes' and gs.group_id = 0 and MATCH ( gd.`alt` ) AGAINST ('films' IN BOOLEAN MODE) ORDER BY tested_thumb DESC, gs.total_ctr DESC LIMIT 0, 180;

В обоих случаях ошибка:

Code: Select all

ERROR 1191 (HY000): Can't find FULLTEXT index matching the column list
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by admin »

для innodb поля для поиска фултекста должна совпадать полностью с с тем что в индексе

у вас в индексе

FULLTEXT KEY `alt` (`alt`,`description`)


а в

MySQL fields to search in
You can select as many fields as you want
Keep in mind that more fields = more load


отмечен только альт
Don't forget to run script update
S_Flash
Posts: 1788
Joined: Mon Mar 08, 2010 9:04 am
Contact:

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by S_Flash »

А что лучше сделать в данной ситуации: переключить таблицу в MyISAM или пересоздать индекс?
Если пересоздать индекс, то корректна ли следующая строка или что в ней поменять для данной ситуации:

Code: Select all

ALTER TABLE rot_gallery_data16 ADD FULLTEXT (`alt`, `description`);
?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by admin »

проще всего в

MySQL fields to search in
You can select as many fields as you want
Keep in mind that more fields = more load


отметить альт и деск
Don't forget to run script update
S_Flash
Posts: 1788
Joined: Mon Mar 08, 2010 9:04 am
Contact:

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by S_Flash »

Проверил, на мастере сейчас и Alt и Description

Image
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Mysql error 1191: Can't find FULLTEXT index ..

Post by admin »

кажется понял в чем вопрос) проведите плз ап
Don't forget to run script update
Post Reply