Help Center> Relational Database Service> Troubleshooting> Tables Failed to Be Found After Case-Sensitivity Setting Changes

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

  1. Change the value of lower_case_table_names to 0, indicating that table names are case sensitive.
  2. Reboot the database.
  3. Change uppercase letters in table names to corresponding lowercase letters.
  4. Change the value of lower_case_table_names to 1, indicating that table names are case insensitive.
  5. 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.