{"id":100,"date":"2010-02-11T15:12:28","date_gmt":"2010-02-11T21:12:28","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=100"},"modified":"2010-02-11T15:12:28","modified_gmt":"2010-02-11T21:12:28","slug":"restore-from-mysqldump-all-databases-in-parallel","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=100","title":{"rendered":"Restore from <code>mysqldump --all-databases<\/code> in parallel"},"content":{"rendered":"<p><code>csplit backup.sql \/\"^-- Current Database\"\/ {*}; for f in xx*; do cat xx00 \"$f\" | mysql& done;<\/code><\/p>\n<p>and then <code>rm xx*<\/code> when the background jobs have finished.<\/p>\n<p>I haven&#8217;t done any benchmarking, and I haven&#8217;t worked out what to do if the number of databases exceeds the number of available connections.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>csplit backup.sql \/&#8221;^&#8211; Current Database&#8221;\/ {*}; for f in xx*; do cat xx00 &#8220;$f&#8221; | mysql&#038; done; and then rm xx* when the background jobs have finished. I haven&#8217;t done any benchmarking, and I haven&#8217;t worked out what to do if the number of databases exceeds the number of available connections.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-1C","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":0,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}