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.
This commit is contained in:
parent
fa0935dead
commit
faff1cda2b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user