::NoName Magazine 无名杂志 » Project Parasy » 麻烦看下。申级数据库出来这样的问题
本主题共有 18 条回复 | 回到顶部
#4 - 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怎么样才可以
我把你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怎么样才可以
#8 - 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( NOT NULL auto_increment,
`dateline` int(10) NOT NULL default '0',
`author` varchar(15) NOT NULL default '',
`authorid` mediumint( 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( 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;
是这段吗。把上面的不要了。就下面这些
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( NOT NULL auto_increment,
`dateline` int(10) NOT NULL default '0',
`author` varchar(15) NOT NULL default '',
`authorid` mediumint( 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( 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;
是这段吗。把上面的不要了。就下面这些
#11 - 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;
-- --------------------------------------------------------
这一段升级过了也不必
--
-- 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;
-- --------------------------------------------------------
这一段升级过了也不必