2012-04-19 04:02:28 +02:00
|
|
|
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'innodb' AND PLUGIN_LIBRARY IS NULL`)
|
|
|
|
{
|
|
|
|
--skip Requires built-in InnoDB.
|
|
|
|
}
|
|
|
|
|
2012-08-22 23:32:25 +02:00
|
|
|
let $cmd=`select replace("$MYSQLD_BOOTSTRAP_CMD --skip-innodb", " --default-storage-engine=myisam", "")`;
|
2012-04-19 04:02:28 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Now it *must* fail, because if InnoDB is compiled in, it is used as a default
|
2012-08-22 23:32:25 +02:00
|
|
|
# storage engine. but $cmd includes --skip-innodb
|
2012-04-19 04:02:28 +02:00
|
|
|
#
|
|
|
|
error 1;
|
|
|
|
exec $cmd;
|
|
|
|
|
|
|
|
echo "all ok"; # to not have zero-length result file
|
|
|
|
|