Commit faff1cda authored by unknown's avatar unknown
Browse files

Warn when mysqld starts up with lower_case_table_names=2 but datadir is

on a case-sensitive filesystem. (Bug #7887)


sql/mysqld.cc:
  Add warning when running with lower_case_table_names=2 and datadir is
  on a case-sensitive filesystem.
parent fa0935de
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2913,6 +2913,17 @@ You should consider changing lower_case_table_names to 1 or 2",
      lower_case_table_names= 2;
    }
  }
  else if (lower_case_table_names == 2 &&
           (test_if_case_insensitive(mysql_real_data_home) == 0))
  {
    if (global_system_variables.log_warnings)
      sql_print_warning("\
You have forced lower_case_table_names to 2 through a command-line \
option, even though your file system '%s' is case sensitive.  This means \
that you can create a table that you can then no longer access. \
You should consider changing lower_case_table_names to 0.",
			mysql_real_data_home);
  }

  select_thread=pthread_self();
  select_thread_in_use=1;