![]()
Khi cài đặt Magento bạn có thể sẽ gặp lỗi:
The installation of Magento gives with the connection to the database following report: “innoDB storage engine is not supported”.
Lỗi trên thông thường xảy ra với phiên bản Magento 1.6.2.0
Để fix lỗi trên ta tìm và sửa file /magento/app/code/core/mage/install/model/installer/Db.php
Chúng ta tìm đến dòng 85:
// check InnoDB support
if (!$resource->supportEngine()) {
Mage::throwException(Mage::helper('install')->__('Database server does not support '
. 'the InnoDB storage engine.'));
}
và comment lại dòng này thành:
/*
if (!$resource->supportEngine()) {
Mage::throwException(Mage::helper('install')->__('Database server does not support '
. 'the InnoDB storage engine.'));
}
*/
Sau đó tiến hành cài đặt lại Magento. Chúc các bạn thành công!
