::NoName Magazine 无名杂志 » Project Parasy » MYSQL升級失敗...求助


2008-6-7 11:00 iat
MYSQL升級失敗...求助

我用的是這個BIG5版本..
http://saicn.com/bbs/thread-6207-1-4.html
導入的時候系統提示有錯誤...
[quote]升級錯誤,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 ,請返回。[/quote]
可是我不會SQL阿...  求助  謝謝(ll09)

[[i] 本帖最后由 iat 于 2008-6-7 11:04 编辑 [/i]]

2008-6-7 14:49 黑玫瑰小太刀
-_-懂这个的都去高考了

2008-6-7 16:32 iat
難怪等這麼久都沒有人來= =

2008-6-7 17:32 Sai
雖然高考的人回來了,但是完全沒有心情答這個

=========================================

把有 --- 的註釋語句都刪掉再升級

2008-6-8 00:40 iat
@@

這次則變了這個./
升級錯誤,MySQL 提示: Duplicate column name 'board_name' ,請返回。
阿阿阿...  我把sql傳上來麻煩sai您幫我改改可以嗎?
沒附件只好用code..
[code]--
-- 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
--

--
-- BIG5
--

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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;

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

--
-- 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;


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;

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;[/code]
麻煩了!

2008-6-10 11:20 iat
幾天了tvt  sai來幫幫忙...(ll09)

2008-6-10 11:32 Sai
Duplicate column name 'board_name'说明这语句已经升级过了,跳过就是

2008-6-10 12:18 iat
阿..?  請問是跳過那一部份?
還是上面那一堆都不用升級了..?

2008-6-10 12:32 Sai
你可以把下面的一句句升级
[code]
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';[/code]

然后一段段升级接下来的语句
[code]
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;[/code]

2008-6-10 15:25 iat
一句句升級每句的結果都是這樣的格式
升級錯誤,MySQL 提示: Duplicate column name 'xxx' ,請返回。

一段段升級我結果則是
升級錯誤,MySQL 提示: Table 'cdb_savepoint' already exists ,請返回。

那現在怎麼辦@@...

2008-6-10 15:46 Sai
恭喜你已经完成数据库升级,可以继续安装了

2008-6-10 15:54 iat
謝謝sai Q_Q  煩到你不好意思

2008-6-10 15:59 Sai
哪的话,其实你可以考虑把PP1.5自己转码后用installer安装

2008-6-10 16:12 iat
噢  ..    出現問題了...
templates/BABEL目錄的所有HTM檔都傳不上去..提示傳送失敗

2008-6-10 16:17 Sai
删了原目录重传

2008-6-10 16:22 iat
Warning: simplexml_load_file() [function.simplexml-load-file]: /home/potato/domains/potato.neticore.org/public_html/forumdata/geo/map.xml:5: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xA6 0x61 0xB2 0x79 in /home/potato/domains/potato.neticore.org/public_html/parasy/Geo.func.php on line 52

Warning: simplexml_load_file() [function.simplexml-load-file]: <cn>¦a²y</cn> in /home/potato/domains/potato.neticore.org/public_html/parasy/Geo.func.php on line 52

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/potato/domains/potato.neticore.org/public_html/parasy/Geo.func.php on line 52

Fatal error: Call to a member function xpath() on a non-object in /home/potato/domains/potato.neticore.org/public_html/parasy/Geo.func.php on line 56

汗 首頁進不了..

2008-6-10 16:31 Sai
你用的是什么版本?何种语言编码?

2008-6-10 20:14 iat
Discuz!_5.5.0_TC_BIG5

ProjectParasy_r23_TC_BIG5

2008-6-12 12:50 iat
推一下..剛剛上了一下首頁發現變了= =
變了這句
Can not write to cache files, please check directory ./forumdata/ and ./forumdata/cache/ .
已經把/forumdata下所有目錄都設777了,文件也要設777嗎(ll12)....

[[i] 本帖最后由 iat 于 2008-6-12 12:52 编辑 [/i]]

2008-6-14 12:27 iat
sai在不?  求救..

2008-7-12 16:50 Bada888
连loli都高考了,老了啊啊啊(ll08)

页: [1]
查看完整版本: MYSQL升級失敗...求助


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