summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/ha_innobase.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc
index 4a69056a9e2..51ea5f40018 100644
--- a/sql/ha_innobase.cc
+++ b/sql/ha_innobase.cc
@@ -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;