{"id":2889,"date":"2017-07-27T09:17:36","date_gmt":"2017-07-27T00:17:36","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2889"},"modified":"2017-07-27T10:03:08","modified_gmt":"2017-07-27T01:03:08","slug":"mysqldump-%e8%a4%87%e6%95%b0%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeexport","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2017\/07\/27\/mysqldump-%e8%a4%87%e6%95%b0%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeexport\/","title":{"rendered":"mysqldump \u8907\u6570\u30c6\u30fc\u30d6\u30eb\u306eexport"},"content":{"rendered":"<p>mysqldump\u3092\u4f7f\u3046\u3068\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092dump\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3067\u304d\u308b\u3002<br \/>\n\u901a\u5e38\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5358\u4f4d\u3084\u5168\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u51fa\u529b\u3057\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u30c6\u30fc\u30d6\u30eb\u5358\u4f4d\u3067\u3082\u51fa\u529b\u3067\u304d\u308b\u3002<br \/>\n\u3053\u306e\u3068\u304d\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u5217\u6319\u3059\u308b\u3068\u3001\u8907\u6570\u30c6\u30fc\u30d6\u30eb\u3092\u51fa\u529b\u3067\u304d\u308b\u3002<\/p>\n<p>[shell]<br \/>\n# TABLE_1,2,3\u3092export<br \/>\nmysqldump -u root -p &#8211;add-drop-table DBNAME TABLE_1 TABLE_2 > \/var\/tmp\/mysqltemp.sql<br \/>\n[\/shell]<\/p>\n<p>\u306a\u304a\u30c6\u30fc\u30d6\u30eb\u540d\u306e\u3068\u3053\u308d\u3092\u7701\u7565\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u3092dump\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\n<strong>&#8211;add-drop-table\u3092\u3064\u3051\u308b\u3068\u3001\u3059\u3067\u306b\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308b\u5834\u5408\u306b\u5168\u524a\u9664\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/strong><br \/>\n\uff08\u6295\u5165\u5148\u306b\u30c6\u30fc\u30d6\u30eb\u304c\u306a\u3044\u5834\u5408\u306f\u3064\u3051\u306a\u3044\u3067\u3088\u3044\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mysqldump\u3092\u4f7f\u3046\u3068\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092dump\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3067\u304d\u308b\u3002 &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2017\/07\/27\/mysqldump-%e8%a4%87%e6%95%b0%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeexport\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,147],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2889"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2889"}],"version-history":[{"count":3,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2889\/revisions"}],"predecessor-version":[{"id":2892,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2889\/revisions\/2892"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}