我的论坛是GBK的,我按照楼主说的办法升级数据库,可是提示说最后一行CHARSET=gbk处有错误..
于是我尝试了一下用您说的第二种方法.结果安装正确.
可能是我没设置好吧。本来有好多符合条件的图都没显示出来...于是我就准备先不装了,反正也有记号了,以后在说.
我在升级数据库之前做了备分,于是就直接用后台的数据恢复功能进行恢复...反正大晚上的也没几个人......
结果......就出现了大问题了...无法恢复数据...一直提示说-
- There seems to have been a problem with the database of your Discuz! Board
- Discuz! info: MySQL Query Error
- User:*******
- Time: 2007-7-11 2:46am
- Script: /admincp.php
- SQL: CREATE TABLE cdb_payset ( groupid int(5) unsigned NOT NULL default '0', type tinyint(1) NOT NULL default '1', enable tinyint(1) NOT NULL default '0', allowrank tinyint(1) NOT NULL default '0', allowcheck tinyint(1) NOT NULL default '0', allowview tinyint(1) NOT NULL default '0', allowforum tinyint(1) NOT NULL default '0', forum varchar(255) NOT NULL default '0,0,0,0,0,0,0,0', leaveday mediumint(8) NOT NULL default '0', group mediumint(8) NOT NULL default '0', getprice mediumint(8) NOT NULL default '0', tax mediumint(8) NOT NULL default '0', up mediumint(8) NOT NULL default '0', down mediumint(8) NOT NULL default '0', rank varchar(255) NOT NULL default '0,0,0,0,0', check varchar(255) NOT NULL default '0,0,0,0,0', well varchar(255) NOT NULL default '0,0,0,0,0', top varchar(255) NOT NULL default '0,0,0,0,0', admin varchar(255) NOT NULL default '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', post varchar(255) NOT NULL default '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', digest varchar(255) NOT NULL default '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', online varchar(255) NOT NULL default '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', pageview varchar(255) NOT NULL default '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', KEY groupid (groupid)) TYPE=MyISAM
- Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'group mediumint(8) NOT NULL default '0', getprice mediumint(8)
- Errno.: 1064
- Please check-up your MySQL server and forum scripts, similar errors will not be reported again in recent 24 hours
- If you have troubles in solving this problem, please visit Discuz! Community http://www.Discuz.net
复制代码 然后我去看数据库发现payset表已经丢失了......
这个应该是版主工资的东西....https://discuz.dismall.com/thread-538883-1-1.html
这个时候我在访问版主工资的时候显示:-
- Script: /plugin.php
- SQL: SELECT * FROM cdb_payset WHERE type='1' AND groupid='1' LIMIT 1
- Error: Table 'hrbuupbbs.cdb_payset' doesn't exist
- Errno.: 1146
- Please check-up your MySQL server and forum scripts, similar errors will not be reported again in recent 24 hours
- If you have troubles in solving this problem, please visit Discuz! Community http://www.Discuz.net.
复制代码 我删除了贴图中心、版主工资的表,然后进行资料恢复依然不行.
后来再尝试进行备份资料的时候显示:-
- Script: /redirect.php
- SQL: SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
- m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6,
- m.extcredits7, m.extcredits8, m.email, m.gender, m.showemail, m.hw, m.invisible, m.xspacestatus, mf.nickname, mf.site,
- mf.icq, mf.qq, mf.yahoo, mf.msn, mf.taobao, mf.alipay, mf.location, mf.medals, mf.avatar, mf.avatarwidth,
- mf.avatarheight, mf.sightml AS signature, mf.customstatus, mf.spacename , mf.field_4
- FROM cdb_posts p
- LEFT JOIN cdb_members m ON m.uid=p.authorid
- LEFT JOIN cdb_memberfields mf ON mf.uid=m.uid
- WHERE p.tid='49' AND p.invisible='0' ORDER BY dateline LIMIT 0, 10
- Error: Unknown column 'm.hw' in 'field list'
- Errno.: 1054
- Please check-up your MySQL server and forum scripts, similar errors will not be reported again in recent 24 hours
- If you have troubles in solving this problem, please visit Discuz! Community http://www.Discuz.net.
复制代码 之后进行数据库校验的时候显示:
khtime int(11) NOT NULL | 用户新增字段[/td] | cdb_members | 字段 | 状态 | dateformat varchar(10) NOT NULL >>> char(10) NOT NULL | 字段被修改 | email varchar(50) NOT NULL >>> char(50) NOT NULL | 字段被修改 | extgroupids varchar(60) NOT NULL >>> char(60) NOT NULL | 字段被修改 | lastip varchar(15) NOT NULL >>> char(15) NOT NULL | 字段被修改 | password varchar(32) NOT NULL >>> char(32) NOT NULL | 字段被修改 | regip varchar(15) NOT NULL >>> char(15) NOT NULL | 字段被修改 | secques varchar(8) NOT NULL >>> char(8) NOT NULL | 字段被修改 | timeoffset varchar(4) NOT NULL >>> char(4) NOT NULL | 字段被修改 | username varchar(15) NOT NULL >>> char(15) NOT NULL | 字段被修改 | hw varchar(15) | 用户新增字段 |
尝试修复这9个字段的时候,提示成功,可再次检验的时候依然这样显示.
请问各位大虾,这是什么原因引起的?
应该怎么才能恢复?
现在的论坛不能备份资料和恢复资料,非常不稳定,希望各位能帮我想点办法
[ 本帖最后由 LoneDisc 于 2007-7-11 05:10 编辑 ] |