换了vps后跑了几天出现的问题,再网上搜索到解决方法,特意转过来 Mysqli prepare error: Table '.\forum\xf_session' is marked as crashed and should be repaired 1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115 2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381 3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478 4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574 5. Zend_Db_Adapter_Abstract->insert() in XenForo/Session.php at line 856 6. XenForo_Session->save() in XenForo/Controller.php at line 414 7. XenForo_Controller->updateSession() in XenForo/Controller.php at line 358 8. XenForo_Controller->postDispatch() in XenForo/FrontController.php at line 358 9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134 C:/dreamsrv/home/localhost/public_html/forum/index.php at line 13 解决方法 在phpMyAdmin里面查询:REPAIR TABLE `xf_session` 后ok了 相关连接 http://www.xf-russia.ru/forum/threa...ed-and-should-be-repaired-proshu-pomoch.1391/ https://xenforo.com/community/threa...rked-as-crashed-and-should-be-repaired.66769/