微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法在Windows 10上的MySQL 8.x中设置lower_case_table_names

Windows 10上运行的MySQL 8.0.12中,似乎不可能将lower_case_table_names设置为2,以便在Workbench中实现混合大小写DB和表名的外观.我意识到在引擎盖下这些物体可能保持小写,这很好.但我希望它在Workbench中看起来正确,我总是可以在以前版本的MysqL中实现这一点.当我尝试这样做并重新启动服务以使其生效时,服务崩溃并停止.在MysqL日志中我看到了这个:

Different lower_case_table_names settings for server (‘2’) and data
dictionary (‘1’).

Data Dictionary initialization Failed.

对于很多人来说,这似乎是一个普遍的问题.

我读了here解决方案是:

So lower_case_table_names needs to be set together with
–initialize.

但我不知道这意味着什么,或者如何在启动时设置它.我已经谷歌搜索了几篇论坛文章,但我找不到如何解决这个问题的明确说明.

最佳答案
8.0.11更改日志:

It is Now prohibited to start the server with a lower_case_table_names setting that is different from the setting used when the server was initialized. The restriction is necessary because collations used by data dictionary table fields are based on the setting defined when the server is initialized,and restarting the server with a different setting would introduce inconsistencies with respect to how identifiers are ordered and compared. (Bug #27309094,Bug #89035)

另见:https://bugs.mysql.com/bug.php?id=89035

通过–initialized,它指的是8.0的初始安装.怎么做的?

原文地址:https://www.jb51.cc/mysql/433306.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐