Monday, November 26, 2018

windows - Make mysql case sensitive?



I wrote



select * from mytable


In my ASP.net app on Windows it works fine. On Linux it complains I used mytable instead of MyTable. How do I set MySQL on Windows to be case sensitive or set Linux to be case insensitive when dealing with table names?



Answer



See 8.2.2. Identifier Case Sensitivity in the mySQL manual.



Short version: Use the lower_case_table_names system variable to achieve case insensitivity on Linux/Unix.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...