::NoName Magazine 无名杂志 » Project Parasy » 麻烦看下。申级数据库出来这样的问题


2007-11-24 23:09 wayman
麻烦看下。申级数据库出来这样的问题

升级错误,MySQL 提示: 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 '---- Project Parasynthesis Database Structure---- [EN] You should change the 'cd' at line 1 ,请返回。


如果把上面这段去了
--
-- Project Parasynthesis Database Structure
--
-- [EN] You should change the 'cdb_' as the same as the $tablepre in config.inc.php
-- [CN] 如果你更改过数据库表明前缀,请批量替换 'cdb_' 为你在 config.inc.php 中设置的 $tablepre
--
--
-- GBK
--

他就出这样的错误
升级错误,MySQL 提示: Duplicate column name 'board_name' ,请返回。

那个地球的中文已经按你的说发改过了。还是这样。。。

2007-11-24 23:32 kinway
这个我看不懂~

2007-11-25 09:20 wayman
申级数据库出现 以下错误。。。帮我解决

2007-11-25 11:14 Sai
这些已经升级过了,跳过已经升级过的内容升级其他的

2007-11-25 11:51 wayman
。。。那我升级那个
我把你sql理的全复上去。就出
升级错误,MySQL 提示: 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 '---- Project Parasynthesis Database Structure---- [EN] You should change the 'cd' at line 1 ,请返回。
这样的效果。。SAI怎么样才可以

2007-11-25 12:00 wayman
[url]http://www.bakadou.com/bbs/index.php[/url]
现在站成这样的

2007-11-25 12:02 Sai
前面的注释不要升级,就是有 ---- 前缀的那些

2007-11-25 12:02 wayman
升级错误//SAI给我个提示

2007-11-25 12:03 wayman
ALTER TABLE `cdb_forums` ADD `board_name` char(50) NOT NULL;
ALTER TABLE `cdb_forums` ADD `idx_push` tinyint(1) NOT NULL default '0';
ALTER TABLE `cdb_favorites` ADD `dateline` int(10) NOT NULL;
ALTER TABLE `cdb_members` ADD `now_img` mediumint(10) NOT NULL default '0';
ALTER TABLE `cdb_members` ADD `idx_cloud` tinyint(1) NOT NULL default '0';
ALTER TABLE `cdb_members` ADD `usr_geo` varchar(100) NOT NULL default 'earth';

--
-- Table structure for table `cdb_savepoint`
--

CREATE TABLE `cdb_savepoint` (
  `svp_id` int(10) unsigned NOT NULL auto_increment,
  `svp_uid` int(10) unsigned NOT NULL default '0',
  `svp_url` varchar(255) NOT NULL default '',
  `svp_rank` int(10) unsigned NOT NULL default '0',
  `svp_created` int(10) unsigned NOT NULL default '0',
  `svp_lastupdated` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`svp_id`),
  KEY `INDEX_UID` (`svp_uid`),
  KEY `INDEX_URL` (`svp_url`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_geo_usage_simple`
--

CREATE TABLE `cdb_geo_usage_simple` (
  `gus_geo` varchar(100) NOT NULL default 'earth',
  `gus_name_cn` varchar(100) NOT NULL default '地球',
  `gus_name_en` varchar(100) NOT NULL default 'Earth',
  `gus_hits` int(10) unsigned NOT NULL default '0',
  `gus_lastupdated` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`gus_geo`),
  UNIQUE KEY `INDEX_NAME_CN` (`gus_name_cn`),
  UNIQUE KEY `INDEX_NAME_EN` (`gus_name_en`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_geo_going`
--

CREATE TABLE `cdb_geo_going` (
  `ggg_id` int(10) unsigned NOT NULL auto_increment,
  `ggg_uid` int(10) unsigned NOT NULL default '0',
  `ggg_geo` varchar(100) NOT NULL,
  `ggg_impression` text,
  `ggg_created` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`ggg_id`),
  KEY `INDEX_UID` (`ggg_uid`),
  KEY `INDEX_GEO` (`ggg_geo`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_geo_been`
--

CREATE TABLE `cdb_geo_been` (
  `gbn_id` int(10) unsigned NOT NULL auto_increment,
  `gbn_uid` int(10) unsigned NOT NULL default '0',
  `gbn_geo` varchar(100) NOT NULL,
  `gbn_impression` text,
  `gbn_created` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`gbn_id`),
  KEY `INDEX_UID` (`gbn_uid`),
  KEY `INDEX_GEO` (`gbn_geo`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_plugin_now`
--

CREATE TABLE IF NOT EXISTS `cdb_plugin_now` (
  `vid` mediumint(8) NOT NULL auto_increment,
  `dateline` int(10) NOT NULL default '0',
  `author` varchar(15) NOT NULL default '',
  `authorid` mediumint(8) NOT NULL default '0',
  `content` varchar(250) NOT NULL default '',
  `background` varchar(35) NOT NULL default '',
  `icons` int(2) NOT NULL default '0',
  PRIMARY KEY  (`vid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_plugin_now_stats`
--

CREATE TABLE IF NOT EXISTS `cdb_plugin_now_stats` (
  `uid` mediumint(8) NOT NULL default '0',
  `total` int(10) NOT NULL default '0',
  `monthly` int(10) NOT NULL default '0',
  `weekly` int(10) NOT NULL default '0',
  `daily` mediumtext NOT NULL,
  `firstupdate` int(10) NOT NULL default '0',
  `lastupdate` int(10) NOT NULL default '0',
  PRIMARY KEY  (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_expense`
--

CREATE TABLE `cdb_expense` (
  `exp_id` int(10) unsigned NOT NULL auto_increment,
  `exp_uid` int(10) unsigned NOT NULL default '0',
  `exp_amount` double NOT NULL default '0',
  `exp_type` int(10) unsigned NOT NULL default '0',
  `exp_memo` text,
  `exp_created` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`exp_id`),
  KEY `INDEX_UID` (`exp_uid`),
  KEY `INDEX_TYPE` (`exp_type`),
  KEY `INDEX_CREATED` (`exp_created`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;


CREATE TABLE `cdb_plugin_tod_project` (
  `tpr_id` int(10) unsigned NOT NULL auto_increment,
  `tpr_uid` int(10) unsigned NOT NULL default '0',
  `tpr_private` int(10) unsigned NOT NULL default '0',
  `tpr_title` varchar(100) NOT NULL default '',
  `tpr_progress` int(10) unsigned NOT NULL default '0',
  `tpr_type` int(10) unsigned NOT NULL default '0',
  `tpr_tasks` int(10) unsigned NOT NULL default '0',
  `tpr_notes` int(10) unsigned NOT NULL default '0',
  `tpr_dbs` int(10) unsigned NOT NULL default '0',
  `tpr_created` int(10) unsigned NOT NULL default '0',
  `tpr_lastupdated` int(10) unsigned NOT NULL default '0',
  `tpr_lasttouched` int(10) unsigned NOT NULL default '0',
  `tpr_completed` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`tpr_id`),
  KEY `INDEX_UID` (`tpr_uid`),
  KEY `INDEX_PRIVATE` (`tpr_private`),
  KEY `INDEX_PROGRESS` (`tpr_progress`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;

CREATE TABLE `cdb_plugin_tod_task` (
  `tta_id` int(10) unsigned NOT NULL auto_increment,
  `tta_uid` int(10) unsigned NOT NULL default '0',
  `tta_pid` int(10) unsigned NOT NULL default '0',
  `tta_title` varchar(100) NOT NULL default '',
  `tta_level` int(10) unsigned NOT NULL default '0',
  `tta_todo` int(1) unsigned NOT NULL default '0',
  `tta_progress` int(10) unsigned NOT NULL default '0',
  `tta_created` int(10) unsigned NOT NULL default '0',
  `tta_lastupdated` int(10) unsigned NOT NULL default '0',
  `tta_lasttouched` int(10) unsigned NOT NULL default '0',
  `tta_completed` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`tta_id`),
  KEY `INDEX_UID` (`tta_uid`),
  KEY `INDEX_PID` (`tta_pid`),
  KEY `INDEX_PROGRESS` (`tta_progress`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

是这段吗。把上面的不要了。就下面这些

2007-11-25 12:36 wayman
是把这些吗

2007-11-25 12:42 wayman
SAI。。。。。是这些吗

2007-11-25 12:54 Sai
ALTER TABLE 如果有一样的也不要

--
-- Table structure for table `cdb_savepoint`
--

CREATE TABLE `cdb_savepoint` (
  `svp_id` int(10) unsigned NOT NULL auto_increment,
  `svp_uid` int(10) unsigned NOT NULL default '0',
  `svp_url` varchar(255) NOT NULL default '',
  `svp_rank` int(10) unsigned NOT NULL default '0',
  `svp_created` int(10) unsigned NOT NULL default '0',
  `svp_lastupdated` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`svp_id`),
  KEY `INDEX_UID` (`svp_uid`),
  KEY `INDEX_URL` (`svp_url`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

这一段升级过了也不必

2007-11-25 13:10 wayman
问题是。我还没升级过。我现在从按装
你给个全的给我直接复上去

2007-11-25 13:11 wayman
这么多段。那段才是。。。还是按上面的弄

2007-11-25 13:13 wayman
。。。我在线等。。。麻烦SAI告诉我咯。那段加才对。。把他放上来。

2007-11-25 13:28 edo
見意你把所以有關Project Parasynthesis升級的數據解除,在重新升級=.=!  看上去很亂的樣子!!

2007-11-25 13:28 Sai
(ll14)
[code]
ALTER TABLE `cdb_members` ADD `now_img` mediumint(10) NOT NULL default '0';
ALTER TABLE `cdb_members` ADD `idx_cloud` tinyint(1) NOT NULL default '0';
ALTER TABLE `cdb_members` ADD `usr_geo` varchar(100) NOT NULL default 'earth';

--
-- Table structure for table `cdb_geo_usage_simple`
--

CREATE TABLE `cdb_geo_usage_simple` (
  `gus_geo` varchar(100) NOT NULL default 'earth',
  `gus_name_cn` varchar(100) NOT NULL default '地球',
  `gus_name_en` varchar(100) NOT NULL default 'Earth',
  `gus_hits` int(10) unsigned NOT NULL default '0',
  `gus_lastupdated` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`gus_geo`),
  UNIQUE KEY `INDEX_NAME_CN` (`gus_name_cn`),
  UNIQUE KEY `INDEX_NAME_EN` (`gus_name_en`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_geo_going`
--

CREATE TABLE `cdb_geo_going` (
  `ggg_id` int(10) unsigned NOT NULL auto_increment,
  `ggg_uid` int(10) unsigned NOT NULL default '0',
  `ggg_geo` varchar(100) NOT NULL,
  `ggg_impression` text,
  `ggg_created` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`ggg_id`),
  KEY `INDEX_UID` (`ggg_uid`),
  KEY `INDEX_GEO` (`ggg_geo`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_geo_been`
--

CREATE TABLE `cdb_geo_been` (
  `gbn_id` int(10) unsigned NOT NULL auto_increment,
  `gbn_uid` int(10) unsigned NOT NULL default '0',
  `gbn_geo` varchar(100) NOT NULL,
  `gbn_impression` text,
  `gbn_created` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`gbn_id`),
  KEY `INDEX_UID` (`gbn_uid`),
  KEY `INDEX_GEO` (`gbn_geo`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_plugin_now`
--

CREATE TABLE IF NOT EXISTS `cdb_plugin_now` (
  `vid` mediumint(8) NOT NULL auto_increment,
  `dateline` int(10) NOT NULL default '0',
  `author` varchar(15) NOT NULL default '',
  `authorid` mediumint(8) NOT NULL default '0',
  `content` varchar(250) NOT NULL default '',
  `background` varchar(35) NOT NULL default '',
  `icons` int(2) NOT NULL default '0',
  PRIMARY KEY  (`vid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_plugin_now_stats`
--

CREATE TABLE IF NOT EXISTS `cdb_plugin_now_stats` (
  `uid` mediumint(8) NOT NULL default '0',
  `total` int(10) NOT NULL default '0',
  `monthly` int(10) NOT NULL default '0',
  `weekly` int(10) NOT NULL default '0',
  `daily` mediumtext NOT NULL,
  `firstupdate` int(10) NOT NULL default '0',
  `lastupdate` int(10) NOT NULL default '0',
  PRIMARY KEY  (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

-- --------------------------------------------------------

--
-- Table structure for table `cdb_expense`
--

CREATE TABLE `cdb_expense` (
  `exp_id` int(10) unsigned NOT NULL auto_increment,
  `exp_uid` int(10) unsigned NOT NULL default '0',
  `exp_amount` double NOT NULL default '0',
  `exp_type` int(10) unsigned NOT NULL default '0',
  `exp_memo` text,
  `exp_created` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`exp_id`),
  KEY `INDEX_UID` (`exp_uid`),
  KEY `INDEX_TYPE` (`exp_type`),
  KEY `INDEX_CREATED` (`exp_created`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;

[/code]

再不行请google,baidu学习mysql基本知识

2007-11-25 13:51 wayman
Discuz! 数据结构成功升级,影响的记录行数 3,请返回。
这段出问题

2007-11-25 14:25 wayman
...

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.