{"id":44,"date":"2014-11-13T20:30:00","date_gmt":"2014-11-13T20:30:00","guid":{"rendered":"https:\/\/www.tech-and-dev.com\/blog\/2014\/11\/13\/how-to-disable-innodb-on-mysql-5-5-and-mariadb\/"},"modified":"2021-02-22T01:30:40","modified_gmt":"2021-02-22T01:30:40","slug":"how-to-disable-innodb-on-mysql-mariadb","status":"publish","type":"post","link":"https:\/\/www.tech-and-dev.com\/blog\/2014\/11\/how-to-disable-innodb-on-mysql-mariadb.html","title":{"rendered":"How to Disable InnoDB On MySQL 5.5 and MariaDB"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><img decoding=\"async\" title=\"Disabling InnoDB\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/innodb-logo.png\" alt=\"Disabling InnoDB\" border=\"0\" \/><\/div>\n<p>InnoDB is a MySQL storage engine. As of MySQL 5.5, InnoDB became the default storage engine instead of MyISAM.<br \/>\nDisabling InnoDB can be helpful, especially on low end boxes which has a low amount of memory.<\/p>\n<p><a name=\"more\"><\/a><\/p>\n<h2 style=\"text-align: left;\">Disabling InnoDB on Older Versions<\/h2>\n<p>On CentOS open \/etc\/my.cnf<\/p>\n<blockquote><p>vi \/etc\/my.cnf<\/p><\/blockquote>\n<p>On Debian and Ubuntu it&#8217;s usually located in \/etc\/mysql\/my.cnf<\/p>\n<blockquote><p>vi \/etc\/mysql\/my.cnf<\/p><\/blockquote>\n<p>In [mysqld] section, add:<\/p>\n<blockquote><p>[mysqld]<br \/>\nskip-innodb<\/p><\/blockquote>\n<p>Restart mysql:<\/p>\n<blockquote><p>service mysql restart<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: left;\">Disabling InnoDB on MySQL 5.5 or MariaDB<\/h2>\n<p>As of mySQL 5.5, InnoDB is the default storage engine. You will have to set MyISAM or any other engine as the default engine before disabling InnoDB. To do this, edit the same file as above &#8220;my.cnf&#8221;, and under [mysqld] section add:<\/p>\n<blockquote><p>[mysqld]<br \/>\nskip-innodb<br \/>\ndefault-storage-engine=MyISAM<\/p><\/blockquote>\n<p>InnoDB has many advantages over MyISAM, but in some cases when the amount of RAM on the server is low, disabling InnoDB can reduce the memory usage drastically.<\/p>\n<p>Any Comments, please let me know!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; InnoDB is a MySQL storage engine. As of MySQL 5.5, InnoDB became the default storage engine instead of MyISAM. Disabling InnoDB can be helpful, especially on low end boxes which has a low amount of memory. Disabling InnoDB on Older Versions On CentOS open \/etc\/my.cnf vi \/etc\/my.cnf On Debian and Ubuntu it&#8217;s usually located [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,24,46,45,4],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-centos","category-debian","category-innodb","category-mysql","category-ubuntu"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":2,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":411,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/411"}],"wp:attachment":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}