大鹏! 发表于 2011-9-23 18:05
有,但是比较麻烦
先备份下这个表 然后清空 找到install.sql文件中 这个表对应的数据插入 然后把备份 ...
- # <?exit();?>
- # Brand! Multi-Volume Data Dump Vol.1
- # Version: Brand!
- # Time: 2011-9-23 23:50
- # Type: custom
- # Table Prefix: brand_
- #
- # Brand! Home: http://www.discuz.com
- # Please visit our website for newest infomation about Brand!
- # --------------------------------------------------------
- DROP TABLE IF EXISTS brand_modelcolumns;
- CREATE TABLE brand_modelcolumns (
- id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
- mid smallint(6) unsigned NOT NULL DEFAULT '0',
- fieldname varchar(30) NOT NULL DEFAULT '',
- fieldtitle char(40) NOT NULL,
- fieldcomment varchar(60) NOT NULL DEFAULT '',
- fieldtype varchar(20) NOT NULL DEFAULT '',
- fieldminlength int(5) unsigned NOT NULL DEFAULT '0',
- fieldlength int(5) unsigned NOT NULL DEFAULT '0',
- fielddefault mediumtext NOT NULL,
- formtype varchar(20) NOT NULL DEFAULT '',
- fielddata mediumtext NOT NULL,
- displayorder tinyint(2) unsigned NOT NULL DEFAULT '0',
- allowshow tinyint(1) NOT NULL DEFAULT '0',
- allowpost tinyint(1) NOT NULL DEFAULT '0',
- isfixed tinyint(1) NOT NULL DEFAULT '0',
- isrequired tinyint(1) NOT NULL DEFAULT '0',
- isimage tinyint(1) NOT NULL DEFAULT '0',
- thumbsize varchar(30) NOT NULL DEFAULT '',
- PRIMARY KEY (id),
- UNIQUE KEY fieldname (mid,fieldname),
- KEY mid (mid,displayorder)
- ) ENGINE=MyISAM AUTO_INCREMENT=133 DEFAULT CHARSET=gbk AUTO_INCREMENT=133;
- INSERT INTO brand_modelcolumns VALUES ('86','2',数值,数值,数值,数值,'0','80','',数值,'','1','1','1','1','1','0','');
- INSERT INTO brand_modelcolumns VALUES ('87','2',数值,数值,数值,数值,'0','30','',数值,'','2','1','1','1','1','0','');
- INSERT INTO brand_modelcolumns VALUES ('88','2',数值,数值,数值,数值,'0','1','0',数值,0x300a31,'8','1','0','1','0','0','');
- .........
复制代码
我单独备份了brand_modelcolumns这个表,是不是把这个备份的sql文件打开,然后把上面的86、87、88改为1、2、3。。。然后恢复这个数据,不知这样行不行,不太敢动喔~~ |