Those of you working on windows and xampp:
1.23 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]:
.. code-block:: ini
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
.. code-block:: mysql
SHOW VARIABLES LIKE 'lower_case_table_names';
.. seealso:: Identifier Case Sensitivity in the MySQL Reference Manual <https://dev.mysql.com/doc/refman/5.7/en/identifier-case-sensitivity.html>
_
.. _faq1_24: