简体   繁体   English

Magento语法错误或访问冲突1286未知表引擎'InnoDB'

[英]Magento Syntax error or access violation 1286 Unknown table engine 'InnoDB'

just got a problem with my Magento Online Store. 我的Magento在线商店出现问题。 Server: Managed Server Strato 服务器:受管服务器Strato

Error LOG here: 错误日志在这里:

    a:4:{i:0;s:85:"SQLSTATE[42000]: Syntax error or access violation: 1286 Unknown table engine 'InnoDB'";i:1;s:2165:"#0 htdocs/magento/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 htdocs/magento/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 htdocs/magento/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 htdocs/magento/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array)
#4 htdocs/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array)
#5 htdocs/magento/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `main_ta...', Array)
#6 htdocs/magento/lib/Varien/Data/Collection/Db.php(730): Zend_Db_Adapter_Abstract->fetchAll('SELECT `main_ta...', Array)
#7 htdocs/magento/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(521): Varien_Data_Collection_Db->_fetchAll('SELECT `main_ta...', Array)
#8 htdocs/magento/lib/Varien/Data/Collection/Db.php(566): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 htdocs/magento/app/code/core/Mage/Core/Model/Resource/Store/Collection.php(174): Varien_Data_Collection_Db->load(false, false)
#10 htdocs/magento/lib/Varien/Data/Collection.php(752): Mage_Core_Model_Resource_Store_Collection->load()
#11 htdocs/magento/app/code/core/Mage/Core/Model/App.php(624): Varien_Data_Collection->count()
#12 htdocs/magento/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#13 htdocs/magento/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#14 htdocs/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 htdocs/magento/index.php(107): Mage::run()
#16 {main}";s:3:"url";s:17:"/en/buy-sell.html";s:11:"script_name";s:10:"/index.php";}

I dont know where is the Problem and the Solution for this Problem. 我不知道问题在哪里以及该问题的解决方案。 Frontend WHITE / Backend Error... 前端白/后端错误...

**** Check before you try this **** ****在尝试之前请检查****

First of all, you need to replace the log file 首先,您需要替换日志文件

issue, stop mysql completely: 问题,完全停止mysql:

/etc/init.d/mysql stop

then move the files 然后移动文件

mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0.bak
mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1.bak

after that issue to start mysql back up 之后,启动mysql备份

/etc/init.d/mysql start

InnoDB is enabled by default, MySQL disables it automatically if your InnoDB log files get corrupted. InnoDB默认启用,如果您的InnoDB日志文件损坏,MySQL会自动禁用它。 When you remove them, they are recreated, allowing InnoDB to start again. 当您删除它们时,将重新创建它们,从而允许InnoDB重新启动。

Give it a shot. 试一试。

As suggested by unixmiah you need to replace or remove the log files in the mysql folder and then restart mysqld: 根据unixmiah的建议,您需要替换或删除mysql文件夹中的日志文件,然后重新启动mysqld:

service mysqld restart 服务mysqld重启

BUT, sometimes Magento even if phpmyadmin starts working again, it continues to retrieve that error. 但有时,即使phpmyadmin重新开始工作,Magento仍会继续检索该错误。 Remove cache won't help. 删除缓存将无济于事。 You need to rename the local.xml file in /app/etc/ .. open any page of magento. 您需要在/ app / etc /中重命名local.xml文件。。打开magento的任何页面。 And after that rename localRENAMED.xml back to local.xml. 然后,将localRENAMED.xml重命名为local.xml。 Seems odd but it worked for me. 似乎很奇怪,但对我有用。

I solved this problem by forcing a graceful restart in WHM. 我通过在WHM中强制正常重启来解决了这个问题。 I didn't try the innoDB solution but that seemed logical. 我没有尝试innoDB解决方案,但这似乎合乎逻辑。

First understand the issue - It simply means that table has been crashed and needs to get repaired. 首先了解一下问题-这仅表示表已崩溃,需要维修。

Simple Solution - 简单的解决方案-

Just get the DB restarted either yourself or through your server provider tech team. 您可以自己或通过服务器提供商的技术团队来重新启动数据库。 Issue will resolve in seconds 问题将在几秒钟内解决

Error files can be visible at this location - /var/lib/mysql/ 错误文件可以在此位置看到-/ var / lib / mysql /

The Shop works fine the last few months and last sunday the shop wont work... 这家商店过去几个月运作良好,上个星期天,该商店将无法运作...

We have a Strato Managed Server Level 2 and got a Backup working from Saturday. 我们有一个Strato Managed Server Level 2,从周六开始有备份工作。 Now two days later thesame problem is there. 现在两天后,同样的问题出现了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM