歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 28, 2024, 08:12:49 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  0.32升級1.0問題 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 0.32升級1.0問題  (閱讀 19498 次)
hoher
新手見習
*
文章: 26


檢視個人資料 個人網站
« 於: 四月 11, 2005, 12:00:28 下午 »

小弟有照置頂的文章方式改
不過執行wizard.php後,按下next會出現如下的畫面
Error creating table: Table 'plog_article_categories_link' already exists
Error creating table: Table 'plog_custom_fields_definition' already exists
Error creating table: Table 'plog_custom_fields_values' already exists
Error creating table: Table 'plog_articles_text' already exists
Error modifying table Articles: Duplicate key name 'blog_id_slug_category_id'
Error modifying table Article Categories: Duplicate key name 'mangled_name'
Error modifying table User Comments: Duplicate key name 'article_id'
Error modifying table Notifications: Duplicate key name 'blog_id'
Error modifying table Blogs: Duplicate key name 'mangled_blog'
Error modifying table Referrers: Duplicate key name 'blog_id_article_id'
Error modifying table Trackbacks: Duplicate key name 'article_id'
Error modifying table Filtered Content: Duplicate key name 'blog_id'
Error modifying table Blocked hosts: Duplicate key name 'blog_id'
Error modifying table Gallery Albums: Duplicate key name 'owner_id_mangled_name'
Error modifying table Gallery Resources: Duplicate key name 'resource_type'
Error modifying table Links: Duplicate key name 'category_id'
Error modifying table Links Categories: Duplicate key name 'blog_id'
Error modifying table Users: Duplicate column name 'status'
Error modifying table Bayesian Filter data table: Duplicate key name 'blog_id'
Error modifying table Permissions: Duplicate key name 'user_id_permission_id'


請問不知是那邊沒設定呢?
謝謝~
已記錄
hoher
新手見習
*
文章: 26


檢視個人資料 個人網站
« 回覆文章 #1 於: 四月 11, 2005, 03:51:44 下午 »

自問自答

一開始執行wizard.php一直會出現上面的錯誤訊息,而造成無法更新,甚至我還原後慘了!!!!!原來的文章都不見了~~ >_<


將原本plog先改名
/var/www/html/plog => /var/www/html/plog_old
上傳1.0版放在
/var/www/html/plog
===================

/etc/rc.d/init.d/mysql stop
先將舊的資料庫改名
mv /var/lib/mysql/plog /var/lib/mysql/plog_old
/etc/rc.d/init.d/mysql start
===================

執行phpmyadmin
新增資料庫=>plog
使用phpmyadmin檔案匯入功能
失敗...................
(之前用指令備份
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql)
===================

使用指令強迫回覆
mysql -uuser -ppassword plog < plog_data.sql
沒錯誤訊息,成功了!!!
===================

將舊的config.properties.php,拷到1.0的目錄裡
執行wizard.php
下一步=>下一步...........都正常

看一下,大功告成!!!
還好都還原了,一開始緊張死了....還以為全掛了!!
不過原本改的template又要重改了,因為我試過用改過的會有問題~

ps:
資料庫mysql那部份
=>我用phpmyadmin查看時,顯示資料庫plog(28)
=>重新建立資料庫,匯入資料庫
=>再用phpmyadmin進入查看,顯示資料庫plog(24)
差了4,這我就不清楚為什麼了??


另外還有,剛好查了關於mysql的備份
大部人建議的方法是
停掉mysql
直接備份/var/lib/mysql/plog裡的全部檔案
再啟動mysql

以上僅供參考
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 四月 11, 2005, 04:58:04 下午 »

這真的是完全自救手冊的典範,放到精華區中!

Mark
已記錄

lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #3 於: 四月 11, 2005, 05:50:21 下午 »

引用自: hoher

執行phpmyadmin
新增資料庫=>plog
使用phpmyadmin檔案匯入功能
失敗...................
(之前用指令備份
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql)
===================

使用指令強迫回覆
mysql -uuser -ppassword plog < plog_data.sql
沒錯誤訊息,成功了!!!
===================

使用 phpMyAdmin 檔案匯入功能會失敗的原因,應該是之前用指令備份的sql檔太大,超過 php 的上傳檔案上限,造成上傳失敗所致。

另外,雞婆提醒一下,gallery 別忘了複製回新安裝的 plog 資料夾裡。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
hoher
新手見習
*
文章: 26


檢視個人資料 個人網站
« 回覆文章 #4 於: 四月 11, 2005, 07:03:56 下午 »

引用自: lss
引用自: hoher

執行phpmyadmin
新增資料庫=>plog
使用phpmyadmin檔案匯入功能
失敗...................
(之前用指令備份
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql)
===================

使用指令強迫回覆
mysql -uuser -ppassword plog < plog_data.sql
沒錯誤訊息,成功了!!!
===================

使用 phpMyAdmin 檔案匯入功能會失敗的原因,應該是之前用指令備份的sql檔太大,超過 php 的上傳檔案上限,造成上傳失敗所致。

另外,雞婆提醒一下,gallery 別忘了複製回新安裝的 plog 資料夾裡。


謝謝lss的提醒,我有把gallery拷回去~ 開懷大笑

我的apache檔案上傳是設定10MB,所以我猜我的原因應該不是這個~
當時也問了朋友,他說他的也是欄位也是28,可是我倒回去(試了兩次都是24)
後來以為是phpmyadmin的關係,將原本的2.3x版改成2.61 patch 3
並使用utf-8編碼,結果仍相同
2.3x試了兩次=>失敗
2.61p3試了兩次=>失敗
指令模式倒回兩次皆成功
目前也還搞不懂為什麼.....??


不過最重要的還是升版前要記得備份~

小弟的plog,仍在努力的改.... 害羞
http://hoher.idv.tw/plog/index.php?blogId=1
已記錄
hoher
新手見習
*
文章: 26


檢視個人資料 個人網站
« 回覆文章 #5 於: 四月 11, 2005, 08:03:29 下午 »

真是見鬼了~


進入管理介面後
出現dashboard,都正常
但再點入進去後
出現一堆說明文字,最下面是發表文章的畫面
可是整個版面是亂的
不管怎麼點都一樣
每個功能的上面都一堆亂亂的說明文字

在公司第一次升級時有出現
但第二次就正常了,後來我在看都粉正常

回到家想改東西,沒想到又看到這個畫面
不管怎麼改都改不回來~
不知有人遇過跟我一樣的問題嗎?
謝謝~


我的管理畫面變成如下
http://140.112.172.42/hoher/2005/error.jpg
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #6 於: 四月 12, 2005, 10:33:39 上午 »

真是見到鬼了!你的變成了 0.32 跟 1.0 的 locale messages 混在一起了!把/locales/*.* 全砍了,然後重新上傳

然後把 /tmp/*.* 砍了!(記得留 .htaceess)

然後試試看!

Mark
已記錄

hoher
新手見習
*
文章: 26


檢視個人資料 個人網站
« 回覆文章 #7 於: 四月 12, 2005, 10:41:44 上午 »

引用自: markwu
真是見到鬼了!你的變成了 0.32 跟 1.0 的 locale messages 混在一起了!把/locales/*.* 全砍了,然後重新上傳

然後把 /tmp/*.* 砍了!(記得留 .htaceess)

然後試試看!

Mark


 害羞  害羞  害羞
原來兇手就是我~
我用0.32的語系檔覆蓋1.0的語系檔(因為之前我加了不少字)
真是不好意思~~
謝謝markwu
 害羞  害羞  害羞
已記錄
cerberus
訪客
« 回覆文章 #8 於: 四月 15, 2005, 12:57:15 上午 »

還是看不懂><~我是sql白吃~

(之前用指令備份
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql) 我輸入你這個指令出現下面的

MySQL 傳回:  
#1064 - 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 '/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_


我用匯入的也不行
我是用phpMyAdmin 2.6.1-pl3 的~~php是 4.3.10
我也是出現
Error creating table: Table 'plog_article_categories_link' already exists
Error creating table: Table 'plog_custom_fields_definition' already exists
Error creating table: Table 'plog_custom_fields_values' already exists
Error creating table: Table 'plog_articles_text' already exists
Error modifying table Articles: Duplicate key name 'blog_id_slug_category_id'
Error modifying table Article Categories: Duplicate key name 'mangled_name'
Error modifying table User Comments: Duplicate key name 'article_id'
Error modifying table Notifications: Duplicate key name 'blog_id'
Error modifying table Blogs: Duplicate key name 'mangled_blog'
Error modifying table Referrers: Duplicate key name 'blog_id_article_id'
Error modifying table Trackbacks: Duplicate key name 'article_id'
Error modifying table Filtered Content: Duplicate key name 'blog_id'
Error modifying table Blocked hosts: Duplicate key name 'blog_id'
Error modifying table Gallery Albums: Duplicate key name 'owner_id_mangled_name'
Error modifying table Gallery Resources: Duplicate key name 'resource_type'
Error modifying table Links: Duplicate key name 'category_id'
Error modifying table Links Categories: Duplicate key name 'blog_id'
Error modifying table Users: Duplicate column name 'status'
Error modifying table Bayesian Filter data table: Duplicate key name 'blog_id'
Error modifying table Permissions: Duplicate key name 'user_id_permission_id'
已記錄
hoher
新手見習
*
文章: 26


檢視個人資料 個人網站
« 回覆文章 #9 於: 四月 15, 2005, 10:24:44 下午 »

引用
還是看不懂><~我是sql白吃~

(之前用指令備份
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql) 我輸入你這個指令出現下面的


-uuser <=指使用者名稱(假設是admin)
-ppassword <=指密碼(假設是1234)
> /backup/plog_data.sql <=指要存放的地方及想備份成的檔名
(假設我要存到 /etc/plog_data.sql)

所以我就應該打

/usr/bin/mysqldump plog -uadmin-p1234 --opt > /etc/plog_data.sql

ps:要記得用root去執行
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #10 於: 四月 15, 2005, 10:45:57 下午 »

引用自: cerberus

(之前用指令備份
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql) 我輸入你這個指令出現下面的

MySQL 傳回:  
#1064 - 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 '/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_

hi cerberus:
你該不會是在 mysql client 裡執行這行指令吧???
這行指令是在命令列執行的,千萬不要進入 mysql client 才執行哦!

引用自: cerberus

我用匯入的也不行
我是用phpMyAdmin 2.6.1-pl3 的~~php是 4.3.10
我也是出現
Error creating table: Table 'plog_article_categories_link' already exists
Error creating table: Table 'plog_custom_fields_definition' already exists
Error creating table: Table 'plog_custom_fields_values' already exists
Error creating table: Table 'plog_articles_text' already exists
Error modifying table Articles: Duplicate key name 'blog_id_slug_category_id'
Error modifying table Article Categories: Duplicate key name 'mangled_name'
Error modifying table User Comments: Duplicate key name 'article_id'
Error modifying table Notifications: Duplicate key name 'blog_id'
Error modifying table Blogs: Duplicate key name 'mangled_blog'
Error modifying table Referrers: Duplicate key name 'blog_id_article_id'
Error modifying table Trackbacks: Duplicate key name 'article_id'
Error modifying table Filtered Content: Duplicate key name 'blog_id'
Error modifying table Blocked hosts: Duplicate key name 'blog_id'
Error modifying table Gallery Albums: Duplicate key name 'owner_id_mangled_name'
Error modifying table Gallery Resources: Duplicate key name 'resource_type'
Error modifying table Links: Duplicate key name 'category_id'
Error modifying table Links Categories: Duplicate key name 'blog_id'
Error modifying table Users: Duplicate column name 'status'
Error modifying table Bayesian Filter data table: Duplicate key name 'blog_id'
Error modifying table Permissions: Duplicate key name 'user_id_permission_id'

因為沒有前後文對照,我大膽猜一下你是要將 0.32 的備份資料回復到資料庫裡吧!而且你已經先安裝過 1.0 才要做這個回復的動作,對嗎??
如果是的話,你要先把 1.0 建的資料表全部刪除,只留下空的 pLog 資料庫,再來做回復 0.32 資料庫的動作。

希望能幫到你。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
btfans
新手見習
*
文章: 49


檢視個人資料
« 回覆文章 #11 於: 四月 16, 2005, 12:04:51 上午 »

Linux Hints :
========
如果你想建一個plog10 sql 資料庫先, 好使舊的plog還可用 .....

1)備份 current:
/usr/bin/mysqldump plog -uuser -ppassword --opt > /backup/plog_data.sql

2.1)use phpMyAdmin to create empty daabase plog10

2.2)restore to plog10:
mysql -uuser -p -D plog10 < plog_data.sql
(  舊的plog data 便可復製 到新的 plog10 .. )

3) copy from 0.32 config.php & 改 config.php 内的 database name 為 plog10

4) wizard.php will OK to upgrade ... to v1.0

5) In admin, edit base_url to http://yrdomain.com/plog10

6) change .htaccess :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /plog10/

ErrorDocument 401 /plog10/error.php
ErrorDocument 403 /plog10/error.php
ErrorDocument 404 /plog10/error.php


p.s. 我用phpmyadmin查看時,顯示資料庫為 plog(28) ...
已記錄



Fedora Core 3/Apache 2.0.52/PHP 4.3.11/MySQL 3.23.58/pLog 1.0/GD2.0.28 enabled/flyupsky-daytime Template
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  0.32升級1.0問題 « 上篇主題 下篇主題 »
    前往: