HanG321 Blog
Be Shine, Be Smile, Be Wild
  • Home
  • Blog
    • 好文閱讀 readings
    • 生活記事 diary
    • 時事評論 commentary
    • 科技資訊 technology
    • 電腦編程 programming
    • 金融財經 finance
    • 音樂電影 music/movie
  • About

搬家

September 16, 2008|blogspot, lifetype, wordpress|科技資訊2
Home » Blog » 科技資訊 » 搬家

很久沒有blog, 今日中秋節補假進行一次”搬家”
其實都不是搬家, 只係將幾年前blogspot 的entry import 到 wordpress,
再將LifeType 既entry?SQL copy 到?wordpress

雖然呢個default template 有點簡單 (都唔只有點…), 過幾日有時間再搵d template

Reference:

從 Blogger 轉移到 WordPress 的技巧
http://www.vixual.net/blog/archives/242
到 WordPress 的 [後台管理] -> [管理] -> [匯入] -> [部落客]。

終於把lifetype 轉成 WordPress
http://blog.mypage.idv.tw/?p=36
透過sql語法將 資料 新增到 WordPress 資料庫中

# comment
INSERT INTO wp_comments (comment_ID, comment_post_ID, comment_content,
comment_date, comment_date_gmt, comment_author_email, comment_author_url,
comment_author, comment_author_IP)
SELECT XXX+id, YYY+article_id, normalized_text, DATE, DATE + INTERVAL - 16 HOUR,
user_email, user_url, user_name, client_ip FROM plog_articles_comments

# post
INTO wp_posts (ID, post_author, post_date, post_date_gmt, post_modified,
post_modified_gmt, comment_count)
SELECT YYY+id, 2, DATE, DATE + INTERVAL - 16 HOUR, DATE,
DATE + INTERVAL - 16 HOUR, num_comments FROM plog_articles

UPDATE wp_posts, plog_articles_text
SET wp_posts.post_title = plog_articles_text.topic
WHERE wp_posts.ID = plog_articles_text.id + YYY

UPDATE wp_posts, plog_articles_text
SET wp_posts.post_content = plog_articles_text.TEXT
WHERE wp_posts.ID = plog_articles_text.id + YYY

# fill out guid
UPDATE wp_posts
SET wp_posts.guid = CONCAT("<a href="http://www.YourDomain.com/blog/archives/" data-mce-href="http://www.YourDomain.com/blog/archives/">http://www.YourDomain.com/blog/archives/</a>", wp_posts.ID)
WHERE wp_posts.guid = ""

# clean out [@more@]
update wp_posts set post_content=replace(post_content,'[@more@]',"");
September 16, 2008 user

Related Posts

  • 升級/轉移 WordPress in GCP marketplace
    升級/轉移 WordPress in GCP marketplaceSeptember 4, 2018
  • LikeCoin WordPress Plugin
    LikeCoin WordPress PluginSeptember 2, 2018
  • Google Cloud Platform Compute Engine send email
    Google Cloud Platform Compute Engine send emailOctober 8, 2017

Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)June 8, 2015
  • assembly
    assemblyFebruary 11, 2006
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題….October 28, 2004
← CHANGE
近況 →

2 Responses to 搬家

  • 從LifeType 轉到 Wordpress | Knowledge Base February 7, 2009

    […] 的標籤也需要囉,只是~我有一千多篇文章耶~~Orz)。參考 只是生活、HanG321、Kiang,新增一個 database,安裝完 WP 之後,把 lifetype 的資料匯入 WP,順便把 […]

    Reply
  • MySql 中文亂碼 utf8 latin1 | HanG321 Blog August 15, 2014

    […] 年搬家既時候, 由LifeType upgrade 去WordPress, 因為MySQL database default latin1 既關係, […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.




最新文章 Recent Posts

  • Serverless Cloud Run Development: Challenge Lab
  • ionic 4: capacitor & pwa
  • Open file limit of tomcat and mysql in Linux server
  • avoid subquery in mysql update statement
  • hacktoberfest

最新留言 Recent Comments

  • admin on LikeCoin
  • Edmond on LikeCoin
  • John Smith on Install macOS High Sierra on VMware
  • admin on Install macOS High Sierra on VMware
  • nana on Install macOS High Sierra on VMware




熱門文章 Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8) June 8, 2015
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題…. October 28, 2004
  • assembly
    assembly February 11, 2006
  • 新工作
    新工作 January 6, 2009
  • 失望
    失望 April 3, 2006

標籤雲 Tag Cloud

amazon CentOS chroot DD-WRT Debian Domino DSM DWA ebook ebook calibre ESXi GCP git google gradle groovy HTML5 IE Java Javascript javscript Jenkins LikeCoin Linux log LotusScript mint MySQL N36L nanoboot nginx PowerShell Qwiklabs responsive route Tomcat VMware vpn vSphere wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

September 2008
M T W T F S S
  « May   Oct »  
1234567
891011121314
15161718192021
22232425262728
2930  

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

Copyright © 2004-2021 hang321.net. All Rights Reserved
Go to mobile version