{"id":1904,"date":"2020-05-08T10:05:05","date_gmt":"2020-05-08T08:05:05","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=1904"},"modified":"2020-05-10T06:52:04","modified_gmt":"2020-05-10T04:52:04","slug":"convert-an-innodb-database-to-myisam","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=1904","title":{"rendered":"convert an InnoDB database to MyIsam"},"content":{"rendered":"\n<p>The problem of Innodb is that you can&#8217;t <em>copy<\/em> the database tables from a PC to another or from localhost to an online website, because of the file &#8220;ibdata1&#8221;, which is out of the tables folder.<\/p>\n\n\n\n<p>So I think that the best solution, if you need to sync your database between different locations, is to convert Innodb tables into MyIsam tables, which can be copied without problems.<\/p>\n\n\n\n<p>Unfortunately I didn&#8217;t find a way to convert a whole database with a single mysql command, but I had to convert each table, with this code: <\/p>\n\n\n\n<p><code>ALTER TABLE table_name ENGINE=MyISAM. <\/code><\/p>\n\n\n\n<p>But at the end the result was any way good.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The problem of Innodb is that you can&#8217;t copy the database tables from a PC to another or from localhost to an online website, because of the file &#8220;ibdata1&#8221;, which is out of the tables folder. So I think that the best solution, if you need to sync your database between different locations, is to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=1904\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;convert an InnoDB database to MyIsam&#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":[565],"tags":[562,564,11],"class_list":["post-1904","post","type-post","status-publish","format-standard","hentry","category-office","tag-innodb","tag-myisam","tag-mysql"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1904"}],"version-history":[{"count":4,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1904\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1904\/revisions\/1908"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}