{"id":242,"date":"2005-12-23T18:31:15","date_gmt":"2005-12-23T09:31:15","guid":{"rendered":"http:\/\/leavebehind.iobb.net\/wordpress\/?p=242"},"modified":"2005-12-23T18:31:15","modified_gmt":"2005-12-23T09:31:15","slug":"moveonwp","status":"publish","type":"post","link":"http:\/\/leavebehind.mydns.jp\/wordpress\/2005\/12\/23\/moveonwp\/","title":{"rendered":"\u30d6\u30ed\u30b0\u30a8\u30f3\u30b8\u30f3\u79fb\u884c"},"content":{"rendered":"<p>\u30d6\u30ed\u30b0\u3092NucleusCMS\u304b\u3089WordPress\u3078\u79fb\u884c\u3057\u305f\u3001\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b\u601d\u3046\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u3044\u3058\u3063\u3066\u7121\u7406\u77e2\u7406\u30c7\u30fc\u30bf\u79fb\u884c\u3057\u305f\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u4e0d\u5b89\u3002<br \/>\n\u3044\u307e\u306e\u3068\u3053\u308d\u30b3\u30e1\u30f3\u30c8\u304c\u79fb\u884c\u3067\u304d\u3066\u3044\u306a\u3044\u304c\u3001\u304a\u3044\u304a\u3044\u3084\u3063\u3066\u884c\u304f\u3002<\/p>\n<p>\u3042\u3041\u3001\u672c\u6587\u306e\u6587\u6cd5\u304c\u9055\u3046\u304b\u3089\u753b\u50cf\u6dfb\u4ed8\u3082\u58ca\u308c\u3066\u307e\u3059\u306a\u3002\u307e\u3041\u3059\u3053\u3057\u305a\u3064\u76f4\u3057\u3066\u884c\u3053\u3046\u3002<\/p>\n<p>URL\u306fhttp:\/\/leavebehind.iobb.net\/wordpress\/<br \/>\n\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30ea\u30f3\u30af\u3068\u304b\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306e\u66f4\u65b0\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u79fb\u884c\u3057\u305f\u624b\u9806<br \/>\n<!--nextpage--><br \/>\nSQL\u3092\u5168\u304f\u77e5\u3089\u306a\u3044\u3068\u3068\u3093\u3067\u3082\u7121\u3044\u4e8b\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u3002Nucleus\u3092\u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u9650\u308a\u3063\u3066\u306e\u3082\u524d\u63d0<br \/>\n\u3002\u3068\u306b\u304b\u304f\u3042\u3068\u3067\u624b\u52d5\u3067\u4fee\u6b63\u3059\u308b\u3068\u3053\u308d\u306f\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\u3002<\/p>\n<p>WordPress\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3001WordPress\u7528\u306e\u30c6\u30fc\u30d6\u30eb\u4f5c\u6210\u304c\u3059\u3093\u3060\u5f8c\u306b<br \/>\n\u30c6\u30fc\u30d6\u30ebwp_post\u5185\u306e\u30c7\u30fc\u30bf\u3092\u524a\u9664(Welcome\u306a\u30dd\u30b9\u30c8\u304c\u4e00\u3064\u3042\u308b\u306e\u3067)<br \/>\nwp_comments\u3082\u540c\u69d8\u306b\u524a\u9664\u3001\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3067\u3042\u3063\u3066\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u306f\u7f6e\u3044\u3066\u304a\u304f<\/p>\n<p>\u4ee5\u4e0b\u3067\u30d6\u30ed\u30b0\u30a2\u30a4\u30c6\u30e0\u306f\u79fb\u52d5\u53ef\u80fd\u3001<\/p>\n<pre>INSERT INTO wp_posts (post_date,post_date_gmt,post_content,post_title) SELECT itime,itime,ibody,ititle FROM nucleus_item;<\/pre>\n<p>_gmt\u306f\u65e5\u672c\u306a\u30899\u6642\u9593\u5f15\u3044\u305f\u3082\u306e\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u3051\u3069\u3001\u540c\u3058\u7269\u3092\u5165\u308c\u3061\u3083\u3063\u3066\u308b\u3001SQL\u306b\u8a73\u3057\u304f\u306a\u3044\u306e\u3067\u3001\u307e\u3041\u52d5\u304f\u3067\u3057\u3087\u3002<br \/>\n\u3053\u308c\u3060\u3051\u3067\u306f\u30dd\u30b9\u30c8\u30e6\u30fc\u30b6\u306e\u30c7\u30fc\u30bf\u304c\u629c\u3051\u308b\u306e\u3067\u3001<\/p>\n<pre>UPDATE  wp_posts SET  post_author = 1<\/pre>\n<p>\u3067\u30dd\u30b9\u30c8\u30e6\u30fc\u30b6\u3092admin\u306b\u30bb\u30c3\u30c8\u3001\u305f\u3060\u3057\u3053\u308c\u306f\u30de\u30eb\u30c1\u30e6\u30fc\u30b6\u3067\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3060\u3051\u3002<br \/>\nguid\u3063\u3066\u306e\u3082\u629c\u3051\u3066\u308b\u306e\u3067\u3001<\/p>\n<pre>UPDATE wp_posts SET guid = concat(\"http:\/\/leavebehind.iobb.net\/wordpress\/?p=\", id); <\/pre>\n<p>\u5909\u66f4\u65e5\u6642\u3068\u305d\u306eGMT\u8a18\u8ff0\u3092\u30dd\u30b9\u30c8\u65e5\u6642\u306b\u30ea\u30bb\u30c3\u30c8\u3002<\/p>\n<pre>\nUPDATE wp_post SET post_modified = post_date;\nUPDATE wp_posts SET post_modified_gmt = post_date_gmt; \n<\/pre>\n<p>\u30ab\u30c6\u30b4\u30ea\u306fwp_posts\u5185\u3067\u8a2d\u5b9a(\u672a\u5206\u985e)\u306f\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u6a5f\u80fd\u3057\u3066\u3044\u306a\u3044\u3002\u3053\u306e\u8a2d\u5b9a\u306f\u30c6\u30fc\u30d6\u30ebwp_post2cat\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u3069\u306e\u30dd\u30b9\u30c8(id)\u304c\u3069\u306e\u30ab\u30c6\u30b4\u30ea(id)\u306b\u5c5e\u3059\u308b\u304b\u3092\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3082\u3044\u3063\u305f\u3093\u30c6\u30fc\u30d6\u30eb\u5185\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3057\u30c7\u30fc\u30bf\u3092\u6d41\u3057\u8fbc\u3093\u3067\u304a\u304f<\/p>\n<pre>\nINSERT INTO wp_post2cat (post_id) SELECT ID FROM wp_posts\nUPDATE wp_post2cat SET category_id = 1\n<\/pre>\n<p>\u305f\u3060\u3057\u3001\u3053\u308c\u3092\u3084\u308b\u3068\u5168\u3066\u672a\u5206\u985e\u306b\u30ab\u30c6\u30b4\u30e9\u30a4\u30ba\u3055\u308c\u308b\u306e\u3067\u3001\u5f8c\u3067\u624b\u52d5\u3067\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u3093\u306f\u3081\u306b\u3002<\/p>\n<p>\u3053\u308c\u3067\u4e00\u5fdc\u306f\u898b\u308c\u308b\u5f62\u306b\u306a\u308b\u3001\u305f\u3060\u3057\u30dd\u30b9\u30c8\u672c\u6587(Nucleus\u3067\u306f\u30a2\u30a4\u30c6\u30e0)\u306f\u53cc\u65b9\u3067\u6587\u6cd5\u304c\u7570\u306a\u308b\u3002\u7279\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30c7\u30fc\u30bf\u306e\u8cbc\u4ed8\u3051\u3002<br \/>\n<!--nextpage--><br \/>\n\u30b3\u30e1\u30f3\u30c8\u3082\u4e00\u5fdc\u79fb\u52d5\u3067\u304d\u308b<\/p>\n<pre>\nINSERT INTO wp_comments (comment_author,comment_author_email,comment_author_IP,comment_date,comment_date_gmt,comment_content,user_id) SELECT cuser,cmail,cip,ctime,ctime,cbody,cmember FROM nucleus_comment; \nUPDATE wp_comments SET comment_author = \"htaka\"  WHERE user_id =1; \n<\/pre>\n<p>\u3067\u3082\u89aa\u306b\u306a\u308b\u30dd\u30b9\u30c8\u306f0\u306b\u306a\u308b\u306e\u3067\u8868\u793a\u3067\u304d\u306a\u3044\u3002\u3057\u304b\u305f\u306a\u3044\u306e\u3067\u30c1\u30de\u30c1\u30de\u4fee\u6b63\u3059\u308b\u4e8b\u306b\u3059\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u3044\u3058\u3063\u3066\u7121\u7406\u77e2\u7406\u30c7\u30fc\u30bf\u79fb\u884c\u3057\u305f\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u4e0d\u5b89\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-webservice"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/s8YSE4-moveonwp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":0,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"wp:attachment":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}