Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
355 views
in Technique[技术] by (71.8m points)

case sensitive - MySQL's lower_case_table_names won't change

I have a problem with changing lower_case_table_names variable value in MySQL 5.6 ... I did all that says in Where to change the value of lower_case_table_names=2 on windows xampp.

The default value on my Windows 7 is '1'. I want to switch it to '2'.

Tried several ways, what I did is:

  1. Edited C:Program FilesMySQLMySQL Server 5.6my-default.ini by adding lower_case_table_names = 2 to wherever I could (without # symbol ofc)
  2. Copied my-default.ini and pasted to the same directory, but renamed to my.ini
  3. Copied my.ini to in folder
  4. Restarted MySQL56 service couple times

Now, when I read "SELECT @@lower_case_table_names" it still says 1, and my db behaves like it is 1...

Any ideas?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I solved this with a file I found under

C:ProgramDataMySQLMySQL Server 5.6my.ini

So, it was ProgramData, not Program Files. I got this path from MySQL Workbench -> Manage Server Instances -> [tab] System Profile -> Configuration File. Guess this is the place where one should look for the current config filepath.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...