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


檢視個人資料
« 於: 三月 17, 2005, 12:05:41 上午 »

按照 http://forum.lifetype.org.tw/index.php?topic=172.0 或老貓的方法都試過了
我把原本的 0.32 搬到新主機後,執行狀況是良好的
執行 wizard.php 準備升級到 1.0 beta 的時候,會發生資料庫的錯誤
有人遇過同樣的問題嗎?

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'
已記錄
nilys
新手見習
*
文章: 14


檢視個人資料
« 回覆文章 #1 於: 三月 17, 2005, 07:26:00 下午 »

自問自答

原本還原資料庫的指令是
$mysql -umysql_user -pmysql_password -D database_name < plog_data.sql

現在使用
$mysql -umysql_user -pmysql_password database_name < plog_data.sql

這樣就沒問題了。

算我自己耍白爛  吐舌頭
已記錄
vinfu
新手見習
*
文章: 24


檢視個人資料
« 回覆文章 #2 於: 三月 17, 2005, 07:56:29 下午 »

不懂耶 可以詳細說明一下嗎?
因為我也是遇到這個問題 謝謝你喔
已記錄
nilys
新手見習
*
文章: 14


檢視個人資料
« 回覆文章 #3 於: 三月 21, 2005, 08:18:04 下午 »

你用什麼方式還原備份的資料庫檔案?

我用以下指令之後就沒問題了
$mysql -umysql_user -pmysql_password database_name < plog_data_backup.sql
已記錄
Philharmania
新手見習
*
文章: 27


檢視個人資料 個人網站
« 回覆文章 #4 於: 三月 22, 2005, 10:18:32 上午 »

是不是在备份数据库时,要加入 drop table 的选择?
已記錄

markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #5 於: 三月 22, 2005, 04:23:16 下午 »

會有這個訊息:

引用
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


表示你已經升級過了卻還要升級一次,可能的原因是:

1. 你真的升級過了?
2. 你執行了我在論壇建議的 index sql ,請先把 index 移除。請參考 http://forum.lifetype.org.tw/index.php?topic=252.0&highlight=index+%E7%A7%BB%E9%99%A4

不應該會有這樣的訊息。請再試試看了!

Mark
已記錄

startown
訪客
« 回覆文章 #6 於: 四月 02, 2005, 09:43:59 上午 »

我也出現以上這些訊息 ...
而且原來備份的網誌也不能用了
 嚎啕大哭
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #7 於: 四月 02, 2005, 11:20:57 下午 »

引用自: startown
我也出現以上這些訊息 ...
而且原來備份的網誌也不能用了
 嚎啕大哭


是 DB 不能用了嗎?還是檔案不能用?是什麼錯誤訊息?

Mark
已記錄

Startown
訪客
« 回覆文章 #8 於: 四月 02, 2005, 11:30:35 下午 »

一直出現找不到網頁的訊息
還好DB沒有受損
我把整個0.32版重新上傳後又可以用了

不過暫時不敢動1.0版的腦筋了
 害羞
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


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

Hi Startown:

呵呵 開懷大笑 !升級前,先看看論壇的討論!

其實我一直建議在測試機器安裝升級,因為這樣愛怎麼搞就怎麼搞。所以別擔心,用個測試機器先試試,有問題請隨時來發問唷。

Mark
已記錄

Startown
訪客
« 回覆文章 #10 於: 四月 03, 2005, 04:02:41 上午 »

剛剛發生慘劇
當我重灌完圖形驗證之後
發現從plog的管理介面中只剩下三篇文章
 疑惑

本來還有2x篇的
現在都看不到了
把外掛刪了也沒用
可是我沒動到SQL資料庫啊....
能請問一下mark這會是什麼問題呢?

我的站台在http://www.startowns.net/plog
昨天才重弄完還來不及備份說..... 嚎啕大哭
已記錄
Anonymous
訪客
« 回覆文章 #11 於: 四月 04, 2005, 03:31:51 下午 »

New table Map of categories to articles created successfully.
New table Definition of custom fields created successfully.
New table Custom fields that have been assigned to articles created successfully.
New table Text of the articles created successfully.
** New tables created successfully **

Changes to table Articles executed successfully.
Changes to table Article Categories executed successfully.
Changes to table User Comments executed successfully.
Changes to table Notifications executed successfully.
Changes to table Blogs executed successfully.
Changes to table Referrers executed successfully.
Changes to table Trackbacks executed successfully.
Changes to table Filtered Content executed successfully.
Changes to table Blocked hosts executed successfully.
Changes to table Gallery Albums executed successfully.
Error modifying table Gallery Resources:
Error modifying table Links:
Error modifying table Links Categories:
Error modifying table Users:
Error modifying table Bayesian Filter data table:
Error modifying table Permissions:

先是出現上面這些訊息,然後才會出現樓主的那些訊息...
這是什麼呢? 只是Error, 不是Index的樣子......
---
Alex
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  0.32 升級到 1.0 beta 的錯誤 « 上篇主題 下篇主題 »
    前往: