discuz

推荐列表 站点导航

当前位置:首页 > 建站教程 > discuz >

解决discuz表崩溃 is marked as crashed之类问题

来源:网络整理  作者:网络  发布时间:2020-12-11 23:47
此类问题 is marked as crashed and last (automatic?) repair failedDELETE FROM security_failedlog WHERE pid = 0 AND tid = 0 AND uid = 0 OR lastfailti...

         public function __construct($para = array()) { if(!empty($para)) { $this->_table = $para['table']; $this->_pk = $para['pk']; } if(isset($this->_pre_cache_key) && (($ttl = getglobal('setting/memory/'.$this->_table)) !== null || ($ttl = $this->_cache_ttl) !== null) && memory('check')) { $this->_cache_ttl = $ttl; $this->_allowmem = true; } $this->repair();//解决表是否崩溃,新加进去的代码 $this->_init_extend(); parent::__construct(); } //解决表是否崩溃,新加进去的一个自己检查是否需要修复的代码 public function repair() { $query1=DB::query('CHECK TABLE '.DB::table($this->_table)); $checkresult =mysql_fetch_array($query1, MYSQL_ASSOC); //echo(DB::table($this->_table)); //exit; if($checkresult['Msg_text'] != 'OK') { DB::query('REPAIR TABLE '.DB::table($this->_table)); } }  
。。。。。。。。。。。。。。。。。。。。。。。。

此类问题 is marked as crashed and last (automatic?) repair failedDELETE FROM security_failedlog WHERE pid = 0 AND tid = 0 AND uid = 0 OR lastfailtime = 0 OR failcount >= 10,真是头疼,天天要进后台去点击修复,甚至一天要好几次,研究了好久终于解决了,方法很简单,一劳永逸,打开discuz_table.php,在这里加入自动检查修复的一段代码就ok了,操作如下:

相关热词: discuz 解决

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/discuz/2722.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

解决discuz表崩溃 is marked as crashed之类问题

2020-12-11 编辑:网络


         public function __construct($para = array()) { if(!empty($para)) { $this->_table = $para['table']; $this->_pk = $para['pk']; } if(isset($this->_pre_cache_key) && (($ttl = getglobal('setting/memory/'.$this->_table)) !== null || ($ttl = $this->_cache_ttl) !== null) && memory('check')) { $this->_cache_ttl = $ttl; $this->_allowmem = true; } $this->repair();//解决表是否崩溃,新加进去的代码 $this->_init_extend(); parent::__construct(); } //解决表是否崩溃,新加进去的一个自己检查是否需要修复的代码 public function repair() { $query1=DB::query('CHECK TABLE '.DB::table($this->_table)); $checkresult =mysql_fetch_array($query1, MYSQL_ASSOC); //echo(DB::table($this->_table)); //exit; if($checkresult['Msg_text'] != 'OK') { DB::query('REPAIR TABLE '.DB::table($this->_table)); } }  
。。。。。。。。。。。。。。。。。。。。。。。。

此类问题 is marked as crashed and last (automatic?) repair failedDELETE FROM security_failedlog WHERE pid = 0 AND tid = 0 AND uid = 0 OR lastfailtime = 0 OR failcount >= 10,真是头疼,天天要进后台去点击修复,甚至一天要好几次,研究了好久终于解决了,方法很简单,一劳永逸,打开discuz_table.php,在这里加入自动检查修复的一段代码就ok了,操作如下:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/discuz/2722.shtml

相关文章

风云图片

推荐阅读

返回discuz频道首页