Can't set lower_case_table_names in MySQL 8.x on Windows 10

前端 未结 2 465
孤独总比滥情好
孤独总比滥情好 2021-01-18 02:38

In MySQL 8.0.12 running on Windows 10, it seems impossible to set lower_case_table_names to 2, so as to achieve the appearance of mixed case DB and table names

2条回答
  •  孤独总比滥情好
    2021-01-18 03:04

    I figured it out. When installing MySQL Server 8.0.x, you have to select Advanced Options so that you can get to this screen:

    Then you select Preserve Given Case, which is not the default. It's ludicrous that MySQL hides and buries this setting in obscurity, and then provides no possible way post-installation to change it. They need to fix this!!

    Be aware that you might have to add lower_case_table_names=2 to my.ini, in case mysql removes it. And you may get a buggy, nonsensical warning as discussed here. I do wish mysql would fix their big obvious bugs that everyone runs in to.

提交回复
热议问题