Database and table names are case-insensitive in Windows, while they are case-sensitive in most types of UnixLinux systems. So how can we deal with this problem? after some queries, we found that the lower_case_table_names parameter can be case sensitive in MySQL, and databases and tables are actually directories and files under the Data Directory.
Therefore, the sensitivity of the operating system determines the case sensitivity of the database and table names. This means that the database and table names are case-insensitive in Windows and are case-sensitive in most types of Unix/Linux systems.
MySQL is case sensitive and can be controlled by the lower_case_table_names parameter in the configuration file.
WINDOWS:
Edit my. ini file, add lower_case_table_names = 0 under [mysqld] (Note: When it is 0, it is lowercase sensitive; when it is 1, it is lowercase insensitive; the default value is 1 ), mySql can define the table name according to the case-insensitive state of the SQL statement for table creation.
LINUX:
Edit/etc/my. in the cnf file, add the lower_case_table_names parameter in the [mysqld] section and set the corresponding value (Note: When the value is 0, it is lowercase sensitive; when the value is 1, it is lowercase insensitive; the default value is 0)