{"id":5062,"date":"2021-06-19T19:03:23","date_gmt":"2021-06-20T02:03:23","guid":{"rendered":"https:\/\/new.blackcap.name\/blog\/new\/?p=5062"},"modified":"2021-06-19T19:05:29","modified_gmt":"2021-06-20T02:05:29","slug":"done","status":"publish","type":"post","link":"https:\/\/blackcap.name\/blog\/new\/?p=5062","title":{"rendered":"Done?"},"content":{"rendered":"\n<p>I might (finally) be (almost) done with this blog upgrade. We shall see.<\/p>\n\n\n\n<p>I will say that WordPress <em>does not<\/em> make it easy to move a blog to a new server. There is a <a href=\"https:\/\/wordpress.org\/support\/article\/importing-content\/#wordpress\" data-type=\"URL\" data-id=\"https:\/\/wordpress.org\/support\/article\/importing-content\/#wordpress\">defined processs<\/a> for purportedly doing this. Pity it does not work very well:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>It has a rather silly 2 megabyte limit, one for which the recommended process does not remove. I eventually found a <a href=\"https:\/\/wordpress.org\/support\/topic\/how-to-increase-maximum-upload-file-size-from-2mb\/\" data-type=\"URL\" data-id=\"https:\/\/wordpress.org\/support\/topic\/how-to-increase-maximum-upload-file-size-from-2mb\/\">post from another user<\/a> who had fought the same battle that explained how to do it, but wait, there&#8217;s more.<\/li><li>The pathetic P.O.S. does not preserve permalinks! Congratulations, every internal link to another blog post is now broken.<\/li><li>For some reason, it gratuitously replaces paragraph breaks with line breaks. WTF?<\/li><\/ol>\n\n\n\n<p>This is more than a little bit disappointing, because one would expect WordPress to be able to properly import from another site running the exact same software. I&#8217;m lucky, because I&#8217;m a computer geek. My solution was to go into the MySQL command prompt and do some database surgery:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Make sure the two blogs are running the <em>exact same<\/em> version of WordPress.<\/li><li>Drop all existing tables.<\/li><li>Restore from a database dump taken on the old system.<\/li><li>Go into the <kbd>wp_options<\/kbd> table and set <kbd>siteurl<\/kbd> and <kbd>home<\/kbd> to reflect the blog URL on the new host.<\/li><\/ol>\n\n\n\n<p>The average user, however, would be S.O.L. Most people don&#8217;t even know what SQL is, let alone know enough of both it and general database design principles to be able to engage in the sort of hackery I just did. They would be stuck not being able to move their blog, stuck with a broken, damaged new blog, or stuck with the lengthy and painful job of repairing their damaged new blog completely by hand.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I might (finally) be (almost) done with this blog upgrade. We shall see. I will say that WordPress does not make it easy to move a blog to a new server. There is a defined processs for purportedly doing this. Pity it does not work very well: It has a rather silly 2 megabyte limit, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-5062","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts\/5062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5062"}],"version-history":[{"count":0,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=\/wp\/v2\/posts\/5062\/revisions"}],"wp:attachment":[{"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blackcap.name\/blog\/new\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}