MySQL search with uft8_general_ci is case sensitive for FULLTEXT?

℡╲_俬逩灬. 提交于 2019-12-05 19:00:54

Aha, figured it out for reals this time.

I believe my issue was using NaviCat to update the collation. I have an older version of NaviCat, maybe it was a bug or something.

Doing:

ALTER TABLE search CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

fixed it correctly.

Always use command line, kids! =)

Hmm - that behavior doesn't match the manual:

By default, the search is performed in case-insensitive fashion. However, you can perform a case-sensitive full-text search by using a binary collation for the indexed columns. For example, a column that uses the latin1 character set of can be assigned a collation of latin1_bin to make it case sensitive for full-text searches.

Which version of MySQL do you use? Can you provide some data that would allow replicating the problem on another machine?

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