按照说明进行操作:http: //turnkeye.com/blog/magento-upgrade-guide/ (这不是 Magento 官方网站,但它指的是这个)。
我已经让自己
现在升级完成,您可以在浏览器中访问您的 Magento 商店执行数据库升级,此过程需要几分钟,请耐心等待。
然后得到mysql错误。谷歌对这个问题一无所知。如果你知道什么,请帮忙。
我的错误日志:
a:5:{i:0;s:245:"Error in file: "/home/mysite/public_html/app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-1.4.0.0.7-1.4.0.0.8.php" - SQLSTATE[HY000]: General error: 1005 Can't create table './mysite_magento/customer_form_attribute.frm' (errno: 150)";i:1;s:978:"#0 /home/mysite/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/mysite/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '1.4.0.0.6', '1.6.2.0.1')
#2 /home/mysite/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('1.4.0.0.6', '1.6.2.0.1')
#3 /home/mysite/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /home/mysite/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#7 /home/mysite/public_html/index.php(87): Mage::run('', 'store')
#8 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
我找到了应该创建表customer_form_attribute的确切代码并尝试执行它,但是在没有任何有关其原因的其他信息的情况下得到了相同的错误。这里是:
[SQL]
CREATE TABLE `customer_form_attribute` (
`form_code` char(32) NOT NULL,
`attribute_id` smallint UNSIGNED NOT NULL,
PRIMARY KEY(`form_code`, `attribute_id`),
KEY `IDX_CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE` (`attribute_id`),
CONSTRAINT `FK_CUSTOMER_FORM_ATTRIBUTE_ATTRIBUTE` FOREIGN KEY (`attribute_id`) REFERENCES `{$installer->getTable('eav_attribute')}` (`attribute_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer attributes/forms relations';
[Err] 1005 - Can't create table './mysite_magento/customer_form_attribute.frm' (errno: 150)