數(shù)據(jù)庫(kù)遷移后,連接數(shù)據(jù)庫(kù)突然報(bào)錯(cuò):
ERROR 1286 (42000): Unknown table engine 'InnoDB'
于是查看數(shù)據(jù)庫(kù)引擎。
show engines;
發(fā)現(xiàn)竟然沒有了Innodb引擎
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
| 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 |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
Innodb數(shù)據(jù)庫(kù)引擎應(yīng)該是好的膝宁,應(yīng)該是日志錯(cuò)誤導(dǎo)致的驻债,于是刪掉數(shù)據(jù)庫(kù)目錄下的ib_logfile*文件(ibdata不要?jiǎng)h,千萬不要?jiǎng)h錯(cuò)了锤岸!),然后重啟數(shù)據(jù)庫(kù)板乙,一切恢復(fù)正常是偷。
`
`