Commit 3bdfe448 authored by jimw@mysql.com's avatar jimw@mysql.com

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

on a case-sensitive filesystem. (Bug #7887)
parent 027d1ff1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment