{"id":748,"date":"2007-10-29T13:39:51","date_gmt":"2007-10-29T18:39:51","guid":{"rendered":"http:\/\/softbeam.net\/hobby\/?p=748"},"modified":"2007-10-29T13:39:51","modified_gmt":"2007-10-29T18:39:51","slug":"myphpadmin-problem-with-mysql","status":"publish","type":"post","link":"https:\/\/softbeam.net\/hobby\/?p=748","title":{"rendered":"phpMyAdmin problem with mysql"},"content":{"rendered":"<p>I don&#8217;t know if it&#8217;s the problem. The thing is after I did some yum update, using phpMyAdmin to restore my wordpress databases  failed.<\/p>\n<p>The alternative way is just to backup the \/var\/lib\/mysql directory.<\/p>\n<p>Whenever I need to recover my database, first rm -rf the corresponding database directory under \/var\/lib\/mysql &#8211;be careful, not \/var\/lib\/mysql itself since it contains mysql.sock which should not be deleted&#8211; and mv the corresponding backuped database directory there followed by &#8220;chown -R mysql:mysql &lt;corresponding database directory&gt;&#8221;. Everything is set again.<\/p>\n<p>The easier way is to first drop the database through phpMyAdmin, then recreate it by importing the corresponding database file, which was backed up before by exporting the database file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know if it&#8217;s the problem. The thing is after I did some yum update, using phpMyAdmin to restore my wordpress databases failed. The alternative way is just to backup the \/var\/lib\/mysql directory. Whenever I need to recover my database, first rm -rf the corresponding database directory under \/var\/lib\/mysql &#8211;be careful, not \/var\/lib\/mysql itself &hellip; <a href=\"https:\/\/softbeam.net\/hobby\/?p=748\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;phpMyAdmin problem with mysql&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-748","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=\/wp\/v2\/posts\/748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=748"}],"version-history":[{"count":0,"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=\/wp\/v2\/posts\/748\/revisions"}],"wp:attachment":[{"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softbeam.net\/hobby\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}