Commit e19a292c authored by unknown's avatar unknown

ha_innobase.cc Add better error message if innodb_data_file_path is not set

ha_innobase.h	Remove HA_NOT_READ_AFTER_KEY from table han
ha_innobase.h	dler flags: it prevented the use of an index in MAX()


sql/ha_innobase.h:
  Remove HA_NOT_READ_AFTER_KEY from table han
  dler flags: it prevented the use of an index in MAX()
sql/ha_innobase.cc:
  Add better error message if innodb_data_file_path is not set
parent 421e64ae
...@@ -542,7 +542,15 @@ innobase_init(void) ...@@ -542,7 +542,15 @@ innobase_init(void)
if (!innobase_data_file_path) if (!innobase_data_file_path)
{ {
fprintf(stderr, fprintf(stderr,
"Can't initialize InnoDB as 'innodb_data_file_path' is not set\n"); "Cannot initialize InnoDB as 'innodb_data_file_path' is not set.\n"
"If you do not want to use transactional InnoDB tables, add a line\n"
"skip-innodb\n"
"to the [mysqld] section of init parameters in your my.cnf\n"
"or my.ini. If you want to use InnoDB tables, add for example,\n"
"innodb_data_file_path = /mysql/data/ibdata1:20M\n"
"More information on setting the parameters you find in the\n"
"manual.\n");
innodb_skip=1; innodb_skip=1;
DBUG_RETURN(FALSE); // Continue without innobase DBUG_RETURN(FALSE); // Continue without innobase
} }
......
...@@ -83,7 +83,7 @@ class ha_innobase: public handler ...@@ -83,7 +83,7 @@ class ha_innobase: public handler
HA_NO_WRITE_DELAYED | HA_NO_WRITE_DELAYED |
HA_PRIMARY_KEY_IN_READ_INDEX | HA_PRIMARY_KEY_IN_READ_INDEX |
HA_DROP_BEFORE_CREATE | HA_DROP_BEFORE_CREATE |
HA_NOT_READ_AFTER_KEY | HA_NO_PREFIX_CHAR_KEYS), HA_NO_PREFIX_CHAR_KEYS),
last_dup_key((uint) -1), last_dup_key((uint) -1),
start_of_scan(0) start_of_scan(0)
{ {
......
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