{"id":4972,"date":"2013-01-13T18:22:10","date_gmt":"2013-01-14T01:22:10","guid":{"rendered":"http:\/\/www.mysqltutorial.org\/?page_id=4972"},"modified":"2023-12-29T06:17:00","modified_gmt":"2023-12-29T13:17:00","slug":"mysql-change-storage-engine","status":"publish","type":"page","link":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/","title":{"rendered":"How To Change MySQL Storage Engine"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn how to which storage engine that a table is using and how to change the storage engine of the table to a different one.<\/p>\n\n\n\n<p>MySQL supports many kinds of <a href=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-storage-engines\/\">storage engines<\/a> that provide different capabilities and characteristics. For example, the InnoDB tables support transaction, whereas MyISAM does not.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Querying the current storage engine of a table<\/h2>\n\n\n\n<p>There are several ways to get the current storage engine of a table.<\/p>\n\n\n\n<p>The first way to check the current storage engine of a table is to <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-select-from\/\">query data<\/a> from the <code>tables<\/code> table in the <code>information_schema<\/code> database.<\/p>\n\n\n\n<p>For example, to get the current storage engine of the <code>offices<\/code> table in the classicmodels <a href=\"https:\/\/www.mysqltutorial.org\/getting-started-with-mysql\/mysql-sample-database\/\">sample database<\/a>, you use the following query:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> \n    <span class=\"hljs-keyword\">engine<\/span>\n<span class=\"hljs-keyword\">FROM<\/span>\n    information_schema.tables\n<span class=\"hljs-keyword\">WHERE<\/span>\n    table_schema = <span class=\"hljs-string\">'classicmodels'<\/span>\n        <span class=\"hljs-keyword\">AND<\/span> table_name = <span class=\"hljs-string\">'offices'<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"79\" height=\"42\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Change-Storage-Engine-Example.jpg\" alt=\"MySQL Change Storage Engine Example\" class=\"wp-image-4973\"\/><\/figure>\n\n\n\n<p>The second way to query the storage engine of a table is to use the <code>SHOW TABLE STATUS<\/code> statement as follows:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SHOW<\/span> <span class=\"hljs-keyword\">TABLE<\/span> <span class=\"hljs-keyword\">STATUS<\/span> <span class=\"hljs-keyword\">LIKE<\/span> <span class=\"hljs-string\">'offices'<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"42\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Show-Table-Status-Example.jpg\" alt=\"MySQL Show Table Status Example\" class=\"wp-image-4974\" srcset=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Show-Table-Status-Example.jpg 470w, https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Show-Table-Status-Example-300x27.jpg 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n\n\n\n<p>The third way to get the storage engine of a table is to use the <code>SHOW CREATE TABLE<\/code> statement.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SHOW<\/span> <span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> offices;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">mysql&gt; <span class=\"hljs-keyword\">SHOW<\/span> <span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> offices\\G;\n*************************** 1. row ***************************\n       Table: offices\n<span class=\"hljs-keyword\">Create<\/span> <span class=\"hljs-keyword\">Table<\/span>: <span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> <span class=\"hljs-string\">`offices`<\/span> (\n  <span class=\"hljs-string\">`officeCode`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">10<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`city`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`phone`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`addressLine1`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`addressLine2`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`state`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`country`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`postalCode`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">15<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  <span class=\"hljs-string\">`territory`<\/span> <span class=\"hljs-built_in\">varchar<\/span>(<span class=\"hljs-number\">10<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n  PRIMARY <span class=\"hljs-keyword\">KEY<\/span> (<span class=\"hljs-string\">`officeCode`<\/span>)\n) <span class=\"hljs-keyword\">ENGINE<\/span>=<span class=\"hljs-keyword\">InnoDB<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">CHARSET<\/span>=latin1\n<span class=\"hljs-number\">1<\/span> <span class=\"hljs-keyword\">row<\/span> <span class=\"hljs-keyword\">in<\/span> <span class=\"hljs-keyword\">set<\/span> (<span class=\"hljs-number\">0.00<\/span> sec)\nmysql&gt;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>MySQL showed the <code>offices<\/code> table uses the InnoDB storage engine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MySQL changing storage engine<\/h2>\n\n\n\n<p>Once you have the information of the storage engine of a table, you can change it using the <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-alter-table\/\">ALTER TABLE<\/a> statement as follows:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">ALTER<\/span> <span class=\"hljs-keyword\">TABLE<\/span> table_name <span class=\"hljs-keyword\">ENGINE<\/span> engine_name;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>To check which storage engine that your MySQL server currently supports, you use the SHOW ENGINES statement as follows:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SHOW<\/span> <span class=\"hljs-keyword\">ENGINES<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"216\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-SHOW-ENGINE.jpg\" alt=\"MySQL SHOW ENGINE\" class=\"wp-image-4976\" srcset=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-SHOW-ENGINE.jpg 639w, https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-SHOW-ENGINE-300x101.jpg 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/figure>\n\n\n\n<p>For example, to change the storage engine of the <code>offices<\/code> table from InnoDB to MyISAM, you use the following statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">ALTER<\/span> <span class=\"hljs-keyword\">TABLE<\/span> offices <span class=\"hljs-keyword\">ENGINE<\/span> = <span class=\"hljs-string\">'MYISAM'<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this tutorial, we have shown you how to query the current storage engine of a table and how to change it to a different storage engine using the <code>ALTER TABLE<\/code> statement.<\/p>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful? <\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"4972\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/\"\n\t\t\t\tdata-post-title=\"How To Change MySQL Storage Engine\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"4972\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/\"\n\t\t\t\tdata-post-title=\"How To Change MySQL Storage Engine\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to which storage engine that a table is using and how to change the storage engine of the table to a different one.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":441,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4972","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change Storage Engine For a Table in MySQL<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to get the current storage engine that a table is using and change the storage engine of the table to a different one.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Storage Engine For a Table in MySQL\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn how to get the current storage engine that a table is using and change the storage engine of the table to a different one.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/\" \/>\n<meta property=\"og:site_name\" content=\"MySQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-29T13:17:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Change-Storage-Engine-Example.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/\",\"name\":\"How to Change Storage Engine For a Table in MySQL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/MySQL-Change-Storage-Engine-Example.jpg\",\"datePublished\":\"2013-01-14T01:22:10+00:00\",\"dateModified\":\"2023-12-29T13:17:00+00:00\",\"description\":\"In this tutorial, you will learn how to get the current storage engine that a table is using and change the storage engine of the table to a different one.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/MySQL-Change-Storage-Engine-Example.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/MySQL-Change-Storage-Engine-Example.jpg\",\"width\":79,\"height\":42,\"caption\":\"MySQL Change Storage Engine Example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-change-storage-engine\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL Administration\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Change MySQL Storage Engine\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\",\"name\":\"MySQL Tutorial\",\"description\":\"A comprehensive MySQL Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mysqltutorial.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Storage Engine For a Table in MySQL","description":"In this tutorial, you will learn how to get the current storage engine that a table is using and change the storage engine of the table to a different one.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/","og_locale":"en_US","og_type":"article","og_title":"How to Change Storage Engine For a Table in MySQL","og_description":"In this tutorial, you will learn how to get the current storage engine that a table is using and change the storage engine of the table to a different one.","og_url":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/","og_site_name":"MySQL Tutorial","article_modified_time":"2023-12-29T13:17:00+00:00","og_image":[{"url":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Change-Storage-Engine-Example.jpg","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/","url":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/","name":"How to Change Storage Engine For a Table in MySQL","isPartOf":{"@id":"https:\/\/www.mysqltutorial.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/#primaryimage"},"image":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Change-Storage-Engine-Example.jpg","datePublished":"2013-01-14T01:22:10+00:00","dateModified":"2023-12-29T13:17:00+00:00","description":"In this tutorial, you will learn how to get the current storage engine that a table is using and change the storage engine of the table to a different one.","breadcrumb":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/#primaryimage","url":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Change-Storage-Engine-Example.jpg","contentUrl":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2016\/01\/MySQL-Change-Storage-Engine-Example.jpg","width":79,"height":42,"caption":"MySQL Change Storage Engine Example"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-change-storage-engine\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mysqltutorial.org\/"},{"@type":"ListItem","position":2,"name":"MySQL Administration","item":"https:\/\/www.mysqltutorial.org\/mysql-administration\/"},{"@type":"ListItem","position":3,"name":"How To Change MySQL Storage Engine"}]},{"@type":"WebSite","@id":"https:\/\/www.mysqltutorial.org\/#website","url":"https:\/\/www.mysqltutorial.org\/","name":"MySQL Tutorial","description":"A comprehensive MySQL Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mysqltutorial.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/4972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/comments?post=4972"}],"version-history":[{"count":1,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/4972\/revisions"}],"predecessor-version":[{"id":13828,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/4972\/revisions\/13828"}],"up":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/441"}],"wp:attachment":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/media?parent=4972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}