MySQL error: “Column 'columnname' cannot be part of FULLTEXT index”

前端 未结 3 1081
攒了一身酷
攒了一身酷 2021-02-07 15:59

Recently I changed a bunch of columns to utf8_general_ci (the default UTF-8 collation) but when attempting to change a particular column, I received the MySQL error:

<         


        
3条回答
  •  旧巷少年郎
    2021-02-07 16:47

    Oops, so I have found the answer to my problem:

    All columns of a FULLTEXT index must have not only the same character set but also the same collation.

    My FULLTEXT index had utf8_unicode_ci on one of its columns, and utf8_general_ci on its other columns.

提交回复
热议问题