Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑问] 请求DZ的牛人们的帮助

[复制链接]
sdhunter 发表于 2008-4-15 09:55:44 | 显示全部楼层 |阅读模式
我的空间是linux的,我在后台发现了数据库出现错误,所以我在CP里的mysql里修复出现了下面的错误

MySQL Account Maintenance
   Repairing Database


cdb_sessions
error    : The handler for the table doesn't support repair

然后找虚拟主机的客服帮助,客服还比较友善有水平回复我:

cdb_sessions
这个表不完整

而且无法修复
不完整不是因为表残缺
能不能帮忙修复一下
是因为表的一些元素没有了
修复不了
如果是存在还可以修复
那随便填一些进去可不可以
但这个表有两个东西是完全没有。。。
当然不行。。。
怎么办
那只有看你是不是有备份了
因为这个错误搞到我装了很久程序还不行
其实这个错误一直存在
从molyx的时候已经存在数据库有问题了
我本来以为转过来DZ6后会变得没有了
完整的表由cdb_creditslog.MYD cdb_creditslog.MYI cdb_crons.frm这3个组成
但是你那个表只有.frm这个
而数据和表结构就没有
这个不存在也就没办法修复
那重新安装一个DZ6,用新的DZ6的东西替换它可不可以
不一定行,因为每个表之间的数据根据程序都是可能有关联的
如果一个表的数据不对就可能牵涉到前他表,也就会造成数据显示的问题
我的意思就是不一定行



请问有人能够帮我一下吗?我本打算装supev的,谁知道一装就装了两个星期还是出错,现在才发现原来是数据库里出了毛病,希望有心人能够帮我一把,谢谢了,我的Q是22250331验证时说明是数据库修复.谢谢
回复

使用道具 举报

kook12368 发表于 2008-4-15 14:58:54 | 显示全部楼层
  1. DROP TABLE IF EXISTS cdb_crons;
  2. CREATE TABLE cdb_crons (
  3.   cronid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  4.   available tinyint(1) NOT NULL DEFAULT '0',
  5.   `type` enum('user','system') NOT NULL DEFAULT 'user',
  6.   `name` char(50) NOT NULL DEFAULT '',
  7.   filename char(50) NOT NULL DEFAULT '',
  8.   lastrun int(10) unsigned NOT NULL DEFAULT '0',
  9.   nextrun int(10) unsigned NOT NULL DEFAULT '0',
  10.   weekday tinyint(1) NOT NULL DEFAULT '0',
  11.   `day` tinyint(2) NOT NULL DEFAULT '0',
  12.   `hour` tinyint(2) NOT NULL DEFAULT '0',
  13.   `minute` char(36) NOT NULL DEFAULT '',
  14.   PRIMARY KEY (cronid),
  15.   KEY nextrun (available,nextrun)
  16. ) TYPE=MyISAM AUTO_INCREMENT=15;

  17. INSERT INTO cdb_crons VALUES ('1','1','system','清空今日发帖数','todayposts_daily.inc.php','1170601081','1170604800','-1','-1','0','0');
  18. INSERT INTO cdb_crons VALUES ('2','1','system','清空本月在线时间','onlinetime_monthly.inc.php','1170601081','1172678400','-1','1','0','0');
  19. INSERT INTO cdb_crons VALUES ('3','1','system','每日数据清理','cleanup_daily.inc.php','1170601083','1170624600','-1','-1','5','30');
  20. INSERT INTO cdb_crons VALUES ('4','1','system','生日统计与邮件祝福','birthdays_daily.inc.php','1170601084','1170604800','-1','-1','0','0');
  21. INSERT INTO cdb_crons VALUES ('5','1','system','主题回复通知','notify_daily.inc.php','1170601084','1170622800','-1','-1','5','00');
  22. INSERT INTO cdb_crons VALUES ('6','1','system','每日公告清理','announcements_daily.inc.php','1170601084','1170604800','-1','-1','0','0');
  23. INSERT INTO cdb_crons VALUES ('7','1','system','限时操作清理','threadexpiries_hourly.inc.php','1170601084','1170622800','-1','-1','5','0');
  24. INSERT INTO cdb_crons VALUES ('8','1','system','论坛推广清理','promotions_hourly.inc.php','1170601094','1170604800','-1','-1','0','00');
  25. INSERT INTO cdb_crons VALUES ('9','1','system','每月主题清理','cleanup_monthly.inc.php','0','1170600452','-1','1','6','00');
  26. INSERT INTO cdb_crons VALUES ('10','1','system','每日 X-Space更新用户','supe_daily.inc.php','0','1170600452','-1','-1','0','0');
  27. INSERT INTO cdb_crons VALUES ('12','1','system','道具自动补货','magics_daily.inc.php','0','1170600452','-1','-1','0','0');
  28. INSERT INTO cdb_crons VALUES ('13','1','system','每日验证问答更新','secqaa_daily.inc.php','0','1170600452','-1','-1','6','0');
  29. INSERT INTO cdb_crons VALUES ('14','1','system','每日标签更新','tags_daily.inc.php','0','1170600452','-1','-1','0','0');
复制代码
  1. DROP TABLE IF EXISTS cdb_sessions;
  2. CREATE TABLE cdb_sessions (
  3.   sid char(6) binary NOT NULL DEFAULT '',
  4.   ip1 tinyint(3) unsigned NOT NULL DEFAULT '0',
  5.   ip2 tinyint(3) unsigned NOT NULL DEFAULT '0',
  6.   ip3 tinyint(3) unsigned NOT NULL DEFAULT '0',
  7.   ip4 tinyint(3) unsigned NOT NULL DEFAULT '0',
  8.   uid mediumint(8) unsigned NOT NULL DEFAULT '0',
  9.   username char(15) NOT NULL DEFAULT '',
  10.   groupid smallint(6) unsigned NOT NULL DEFAULT '0',
  11.   styleid smallint(6) unsigned NOT NULL DEFAULT '0',
  12.   invisible tinyint(1) NOT NULL DEFAULT '0',
  13.   `action` tinyint(1) unsigned NOT NULL DEFAULT '0',
  14.   lastactivity int(10) unsigned NOT NULL DEFAULT '0',
  15.   lastolupdate int(10) unsigned NOT NULL DEFAULT '0',
  16.   pageviews smallint(6) unsigned NOT NULL DEFAULT '0',
  17.   seccode mediumint(6) unsigned NOT NULL DEFAULT '0',
  18.   fid smallint(6) unsigned NOT NULL DEFAULT '0',
  19.   tid mediumint(8) unsigned NOT NULL DEFAULT '0',
  20.   bloguid mediumint(8) unsigned NOT NULL DEFAULT '0',
  21.   UNIQUE KEY sid (sid),
  22.   KEY uid (uid),
  23.   KEY bloguid (bloguid)
  24. ) TYPE=HEAP;
复制代码
回复

使用道具 举报

 楼主| sdhunter 发表于 2008-4-15 17:02:43 | 显示全部楼层
这是什么意思?是不是叫我在后台数据库里运行这两寸代码?
回复

使用道具 举报

宙斯2008 发表于 2008-4-16 09:24:55 | 显示全部楼层
是的 ~~~~~~~~~~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-14 20:15 , Processed in 0.085115 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表