Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL to find all tables with a Full Text indexed column in them

Tags:

mysql

mysql5

I need to run a repair on all the tables in all my databases on my MySQL5 server because I have updated the MySQL full text search stopwords file.

Is there a query or command I can run to do this?

like image 217
Treffynnon Avatar asked Feb 04 '11 13:02

Treffynnon


1 Answers

Yes, you just need to query the INFORMATION_SCHEMA.STATISTICS table:

SELECT TABLE_SCHEMA, TABLE_NAME
FROM information_schema.statistics
WHERE index_type LIKE 'FULLTEXT%' 
like image 127
ircmaxell Avatar answered Sep 28 '22 07:09

ircmaxell