mysql server has a parameter called lower_case_table_names, which controls the case of table names and field names
It can have 3 values:
0: case sensitive
1: Ignore case when comparing names, but when creating a table, uppercase letters are also converted to lowercase letters.
2: Ignore case when comparing names, and keep the same when creating a table.
Windows defaults to 1, but this is not the effect we want. Modifying it to 2 is OK.
1. Locate the file
C:\Program Files\MySQL\MySQL Server 5.5\my.ini
2. Find [mysqld] on line 66 and insert a line below
lower_case_table_names=2
、
It takes effect after restarting the service.