If you like to compile MySQL from sources by yourself, for different needs, like debugging, testing etc, you probably can face this issue.
What I usually do to fast compile and test is
|
1 2 3 |
./configure --prefix=/dir/to/mysql make make install |
and then, for example, load the dump of InnoDB from previous version:
|
1 |
mysql testdatabase < dump.sql |
I bet you will not notice all your tables now is MyISAM. Why?
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 1 Server version: 5.1.21-beta-log Source distribution Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> show engines; +------------+---------+-----------------------------------------------------------+--------------+----+------------+ | Engine | Support | Comment | Transactions | XA | Savepoints | +------------+---------+-----------------------------------------------------------+--------------+----+------------+ | CSV | YES | CSV storage engine | NO | NO | NO | | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO | | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO | | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO | +------------+---------+-----------------------------------------------------------+--------------+----+------------+ 4 rows in set (0.00 sec) |
By default InnoDB is not compiled as storage engines.
Perhaps it is related to new pluginable architecture and all engines are equal to be not included by default.
It is not too hard to fix, you just need to use –with-plugins=innodb (or max, or max-no-ndb, which includes set of more engines)
|
1 2 3 |
./configure ---prefix=/dir/to/mysql --with-plugins=innodb make make install |
But what I would want to see is BIG Warning or even Error that InnoDB table can’t be created instead of calm converting to MyISAM