2010-08-16 34 views
2

我在嘗試使用不同的MySQL數據庫引擎時遇到了問題。 (我想改變的MyISAM InnoDB的)使用不同的MySQL數據庫引擎

的/etc/my.cnf

[mysqld] 
bind-address = 127.0.0.1 
default-storage-engine=InnoDB 

看來,它沒有安裝?如果是這樣,我該如何安裝InnoDB?

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) 

我在Mac OS 10.5上,我使用MySQL版本5.1.35。

+0

您使用的是2009年以前發佈的MySQL!我建議你至少升級到MySQL 5.5,其中InnoDB默認啓用並設置爲默認存儲引擎。 – 2014-05-12 17:07:42

回答