LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: nilys 於 三月 17, 2005, 12:05:41 上午



主題: 0.32 升級到 1.0 beta 的錯誤
作者: nilys三月 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'


主題: 0.32 升級到 1.0 beta 的錯誤
作者: nilys三月 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

這樣就沒問題了。

算我自己耍白爛  :-P


主題: 0.32 升級到 1.0 beta 的錯誤
作者: vinfu三月 17, 2005, 07:56:29 下午
不懂耶 可以詳細說明一下嗎?
因為我也是遇到這個問題 謝謝你喔


主題: 0.32 升級到 1.0 beta 的錯誤
作者: nilys三月 21, 2005, 08:18:04 下午
你用什麼方式還原備份的資料庫檔案?

我用以下指令之後就沒問題了
$mysql -umysql_user -pmysql_password database_name < plog_data_backup.sql


主題: 0.32 升級到 1.0 beta 的錯誤
作者: Philharmania三月 22, 2005, 10:18:32 上午
是不是在备份数据库时,要加入 drop table 的选择?


主題: 0.32 升級到 1.0 beta 的錯誤
作者: markwu三月 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四月 02, 2005, 09:43:59 上午
我也出現以上這些訊息 ...
而且原來備份的網誌也不能用了
 :'(


主題: Re: 我也是
作者: markwu四月 02, 2005, 11:20:57 下午
引用自: startown
我也出現以上這些訊息 ...
而且原來備份的網誌也不能用了
 :'(


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

Mark


主題: 0.32 升級到 1.0 beta 的錯誤
作者: Startown四月 02, 2005, 11:30:35 下午
一直出現找不到網頁的訊息
還好DB沒有受損
我把整個0.32版重新上傳後又可以用了

不過暫時不敢動1.0版的腦筋了
 :-$


主題: 0.32 升級到 1.0 beta 的錯誤
作者: markwu四月 02, 2005, 11:44:57 下午
Hi Startown:

呵呵 :-D !升級前,先看看論壇的討論!

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

Mark


主題: 0.32 升級到 1.0 beta 的錯誤
作者: Startown四月 03, 2005, 04:02:41 上午
剛剛發生慘劇
當我重灌完圖形驗證之後
發現從plog的管理介面中只剩下三篇文章
 :-S

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

我的站台在http://www.startowns.net/plog
昨天才重弄完還來不及備份說..... :'(


主題: pLog-1.0 升級錯誤
作者: Anonymous四月 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