3356
MySQLERRORNotableDDL / IndexesHIGH confidence
Functional index cannot be a FULLTEXT index
Production Risk
Low — DDL fails; no index is created.
How to reproduce
trigger — this will error
trigger — this will error
CREATE FULLTEXT INDEX ft_idx ON t ((LOWER(col)));
expected output
ERROR 3356 (HY000): Cannot create a functional index with index type FULLTEXT.
Fix
Use a plain FULLTEXT index
Use a plain FULLTEXT index
CREATE FULLTEXT INDEX ft_idx ON t (col);
Why this works
FULLTEXT indexes work on raw column data; no expression wrapper is needed.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3356 ER_FULLTEXT_FUNCTIONAL_INDEX
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev