加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

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

发布时间:2020-12-11 23:42:22 所属栏目:MySql教程 来源:网络整理
导读:在Windows 10上运行的MySQL 8.0.12中,似乎不可能将lower_case_table_names设置为2,以便在Workbench中实现混合大小写DB和表名的外观.我意识到在引擎盖下这些物体可能保持小写,这很好.但我希望它在Workbench中看起来正确,我总是可以在以前版本的MySQL中实现这

在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的初始安装.怎么做的?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读