Tables Failed to Be Found After Case-Sensitivity Setting Changes
Scenarios
A table containing uppercase letters was created after the MySQL parameter lower_case_table_names was set to case sensitive. However, after the lower_case_table_names was set to case insensitive, this table could not be found.
Case: When a backup is restored to a new instance, restoration will fail if the parameter case-sensitive setting of the new instance is different from that of the original instance.
Modifying sensitive parameters, for example, lower_case_table_names, may have risks. For more sensitive parameters, see Suggestions on Tuning MySQL Parameters in the Relational Database User Guide.
Solution
- Change the value of lower_case_table_names to 0, indicating that table names are case sensitive.
- Reboot the database.
- Change uppercase letters in table names to corresponding lowercase letters.
- Change the value of lower_case_table_names to 1, indicating that table names are case insensitive.
- Reboot the database, or export the entire database and import it again.
- The names of databases, tables, and variables, and table alias must be case sensitive.
- Column names and aliases are always case insensitive. Field values are case insensitive by default.
Last Article: MySQL DB Instance Inaccessible
Next Article: Query Cache Configuration for MySQL Databases
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.