ha_innobase.cc:

  Better error message to help users who created tables with < 3.23.54 where MySQL implicitly added a PRIMARY KEY definition
parent ee226913
...@@ -1030,7 +1030,14 @@ how you can resolve the problem.\n", ...@@ -1030,7 +1030,14 @@ how you can resolve the problem.\n",
if (primary_key != MAX_KEY) { if (primary_key != MAX_KEY) {
fprintf(stderr, fprintf(stderr,
"InnoDB: Error: table %s has no primary key in InnoDB\n" "InnoDB: Error: table %s has no primary key in InnoDB\n"
"InnoDB: data dictionary, but has one in MySQL!\n", name); "InnoDB: data dictionary, but has one in MySQL!\n"
"InnoDB: If you created the table with a MySQL\n"
"InnoDB: version < 3.23.54 and did not define a primary\n"
"InnoDB: key, but defined a unique key with all non-NULL\n"
"InnoDB: columns, then MySQL internally treats that key\n"
"InnoDB: as the primary key. You can fix this error by\n"
"InnoDB: dump + DROP + CREATE + reimport of the table.\n",
name);
} }
((row_prebuilt_t*)innobase_prebuilt) ((row_prebuilt_t*)innobase_prebuilt)
......
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