Commit 5388d915 authored by unknown's avatar unknown

ha_innobase.cc Improved error message in the case the .frm file exists but...

ha_innobase.cc	Improved error message in the case the .frm file exists but InnoDB data dictionary does not conatin the table


sql/ha_innobase.cc:
  Improved error message in the case the .frm file exists but InnoDB data dictionary does not conatin the table
parent 124c535d
......@@ -679,7 +679,7 @@ ha_innobase::bas_ext() const
/* out: file extension strings, currently not
used */
{
static const char* ext[] = {".not_used", NullS};
static const char* ext[] = {".InnoDB_table_inside_tablespace", NullS};
return(ext);
}
......@@ -779,6 +779,14 @@ ha_innobase::open(
if (NULL == (ib_table = dict_table_get(norm_name, NULL))) {
fprintf(stderr, "InnoDB: Cannot find table %s from the internal\n"
"InnoDB: data dictionary of InnoDB though the .frm file\n"
"InnoDB: for the table exists. Maybe you have deleted\n"
"InnoDB: and created again an InnoDB database but\n"
"InnoDB: forgotten to delete the corresponding\n"
"InnoDB: .frm files of old InnoDB tables?\n",
norm_name);
free_share(share);
my_free((char*) upd_buff, MYF(0));
my_errno = ENOENT;
......
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