使用 Scandic 字母进行全文搜索会导致 MySQL 崩溃
MySQL 最近经常崩溃,我试图找出可能导致它崩溃的原因。
SHOW PROCESSLIST 和 mtop 显示带有斯堪的纳维亚字母 (äÖ) 的全文查询正在挂起并锁定表。
在进程列表中,扫描字母显示为“?FFFFFFFFFFFC3?FFFFFFFFFFFA4”,所以我不确定这是否是某种字符编码问题。
一些停留在进程列表中的示例查询:
SELECT ... FROM comments
WHERE (MATCH(word) AGAINST('%l?FFFFFFFFFFC3?FFFFFFFFFFA4pitunkeva*' IN BOOLEAN MODE)
应该读作“läpitunkeva”
SELECT idiom FROM idioms WHERE MATCH (idiom) AGAINST ('hymi?ffffffffffc3?ffffffffffb6')
应该读作“hymiö”
MySQL - 5.0.51a MyISAM UTF-8
MySQL has lately been crashing often and I've tried to crack down what might cause it.
SHOW PROCESSLIST and mtop show that FULL TEXT queries with scandinavian letters (ÄÖ) are hanging and locking the table.
In the processlist the scandic letters are shown as "?FFFFFFFFFFC3?FFFFFFFFFFA4", so I'm not sure if this is some sort of character encoding problem.
Some example queries that are stuck in the processlist:
SELECT ... FROM comments
WHERE (MATCH(word) AGAINST('%l?FFFFFFFFFFC3?FFFFFFFFFFA4pitunkeva*' IN BOOLEAN MODE)
should read 'läpitunkeva'
SELECT idiom FROM idioms WHERE MATCH (idiom) AGAINST ('hymi?ffffffffffc3?ffffffffffb6')
should read 'hymiö'
MySQL - 5.0.51a MyISAM UTF-8
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是在这里发现的 MySQL 5.0 错误 http://bugs.mysql.com/bug.php ?id=37067
看来MySQL升级到5.1是唯一的选择。
我还没有找到在不升级 MySQL 的情况下解决这个问题的解决方案。
This is a MySQL 5.0 bug found here http://bugs.mysql.com/bug.php?id=37067
Seems that MySQL upgrade to 5.1 is the only option.
I haven't found a solution to fix this without upgrading MySQL.
检查 MySQL 数据库/架构的字符集。如果未设置,则默认为 latin1。
您可以在 MySQL 文档中检查适当的字符集。但我通常一般使用“utf8”。
http://dev.mysql.com/doc/refman/5.1 /en/charset-charsets.html
Check the character set of your MySQL DB/schema. If it's not set, the default is latin1.
You can check the appropriate charsets in the MySQL docs. But I usually use 'utf8' in general.
http://dev.mysql.com/doc/refman/5.1/en/charset-charsets.html