我已經在Ubuntu上安裝了mysql 5.1.49。我已經添加以下行的/etc/mysql/my.cnf
在Ubuntu上更改默認的mysql存儲引擎
default-storage-engine=innodb
我已經重新啓動mysqld
過程結束,然後運行
mysql> show engines;
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
正如你所看到的MyISAM還是默認的,我缺少什麼?我也跑
sudo find/-name 'my.cnf'
,以驗證是否有存在於系統
呃...我很困惑。你編輯了'my.cnf',但也確認你的系統上沒有'my.cnf'?它消失了嗎? – eaj 2011-04-13 20:17:55
對不起,這是一個錯字,現在修復它 – 2011-04-13 20:30:12