您可以通过控制台修改参数 lower_case_table_names:设置1,不区分大小写。需要注意两点:
排查是否有大写的表:
select table_schema,table_name from information_schema.tables where table_schema not in("mysql","information_schema") and (md5(table_name)<>md5(lower(table_name)) or md5(table_schema)<>md5(lower(table_schema)));
排查是否有大写的库:
select SCHEMA_NAME from information_schema.SCHEMATA where md5(SCHEMA_NAME)<>md5(lower(SCHEMA_NAME));