I'm running MySQL on a Win32 machine. Each time I create a new table the table and column names are changed to lowercase! ΒΆ
This happens because the MySQL directive lower_case_table_names
defaults to 1 (ON
) in the Win32 version of MySQL. You can change this behavior by simply changing the directive to 0 (OFF
): Just edit your my.ini
file that should be located in your Windows directory and add the following line to the group [mysqld]:
set-variable = lower_case_table_names=0
Note
Forcing this variable to 0 with -lower-case-table-names=0 on a case-insensitive filesystem and access MyISAM tablenames using different lettercases, index corruption may result.
Next, save the file and restart the MySQL service. You can always check the value of this directive using the query
SHOW VARIABLES LIKE 'lower_case_table_names';