{"id":37,"date":"2010-12-15T22:49:28","date_gmt":"2010-12-15T20:19:28","guid":{"rendered":"http:\/\/www.shvek.co.za\/?p=37"},"modified":"2010-12-15T22:49:28","modified_gmt":"2010-12-15T20:19:28","slug":"restoring-mysql-databases-from-myi-other-non-sql-dump-files","status":"publish","type":"post","link":"https:\/\/shvek.com\/?p=37","title":{"rendered":"Restoring MySQL Databases from *.MYI &#038; other non sql dump files"},"content":{"rendered":"<p>I recently needed to restore a MySQL\u00a0 database from a backup of an entire filesystem without booting that filesystem up with out services running to do SQL dumps.<\/p>\n<p>I was able to get the actual files containing the tables located in \/var\/lib\/mysql\/[database-name] and overwrote those files with the ones in the same location on the target machine.<\/p>\n<p>I then performed the repairMyIsam tables command in the db directory.<\/p>\n<p>myisamchk -r *.MYI<\/p>\n<p>However using the phpMyAdmin system within Plesk it was unable to list the tables. Even restarting mysql did not help.<\/p>\n<p>I then tried to list the tables while logged in as the MySQL administrator root. This worked.<\/p>\n<p>All that was needed then to get it working was to recreate the DB User in Plesk and all was well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently needed to restore a MySQL\u00a0 database from a backup of an entire filesystem without booting that filesystem up with out services running to do<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":1,"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/shvek.com\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shvek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}