{"id":2341,"date":"2015-12-07T11:25:49","date_gmt":"2015-12-07T11:25:49","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=2341"},"modified":"2023-04-28T04:13:35","modified_gmt":"2023-04-28T04:13:35","slug":"corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads","title":{"rendered":"corrupted \/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this post we&#8217;re going to look at how changing MySQL variable mysql_repair_threads for betterment of a repair table command became root cause of an instance reboot. Also how repair with n threads message tracks down to this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MyISAM is notorious for table crashes and always need a table repair as a quick remedy.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\"> Table 'myisam_table' is marked as crashed and should be repaired.\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">After seeing above error we quickly jump on to one of the following<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\"> repair table myisam_table\n myisamchk -r -q myisam_table\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Ofcourse there are more options but that&#8217;s not something we&#8217;re talking here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once this become regular and\/or table is large, we look forward to speedup the operation. Then stands out one variable that comes as a ray of hope: mysql_repair_threads<br>As MySQL documentation says <i>&#8220;for value greater than 1, MyISAM table indexes are created in parallel (each index in its own thread) during the Repair by sorting process.&#8221;<\/i><\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;woohoo&#8230; let&#8217;s repair in parallel threads&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and people are quickly tempted to use it ignoring an important line right below it: <i><b>&#8220;Multi-threaded repair is still beta-quality code&#8221;.<\/b><\/i><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You might see &#8220;Repair with N threads&#8221; in processlist output but is it actually helping?<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">mysql&gt; show processlist;\n+-----------+------------------+-------------------+---------+---------+----------+----------------------------------+------------------------------------------------------------------------------------------------------+\n| Id        | User             | Host              | db      | Command | Time     | State                            | Info                                                                                                 |\n+-----------+------------------+-------------------+---------+---------+----------+----------------------------------+------------------------------------------------------------------------------------------------------+\n...\n| 224316896 | root             | localhost         | my_db | Query  |     85 | Repair with 2 threads            | repair table XXX                                                                       |\n...\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">This is what happened recently when someone issued repair table on one of the crashed table and the query wouldn&#8217;t finish even after an hour! As you can note processlist message of <strong>Repair with 2 threads<\/strong> is our hint of the change in myisam_repair_threads value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Repair operation went on for more than estimated time while the table in question was not even 50M and system was well-fed with CPU &amp; RAM.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">mysql&gt; show table status like 'XXX'\\G\n*************************** 1. row ***************************\n           Name: XXX\n         Engine: MyISAM\n        Version: 10\n     Row_format: Dynamic\n           Rows: 1872\n Avg_row_length: 13147\n    Data_length: 32025064\nMax_data_length: 281474976710655\n   Index_length: 145408\n      Data_free: 7413408\n Auto_increment: 28173\n...\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Finally the repair was killed, but it remained in Killed state for more than the anticipated time:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">mysql&gt; show processlist;\n+-----------+------------------+-------------------+---------+---------+----------+----------------------------------+------------------------------------------------------------------------------------------------------+\n| Id        | User             | Host              | db      | Command | Time     | State                            | Info                                                                                                 |\n+-----------+------------------+-------------------+---------+---------+----------+----------------------------------+------------------------------------------------------------------------------------------------------+\n...\n| 224316896 | root             | localhost         | my_db | Killed  |     4009 | Repair with 2 threads            | repair table XXX                                                                       |\n...\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">(That&#8217;s too much)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that in this case, the only thing odd I found is &#8220;myisam_repair_threads&#8221;:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">mysql&gt; show global variables like '%repair%';\n+-----------------------+-------+\n| Variable_name         | Value |\n+-----------------------+-------+\n| myisam_repair_threads | 32    |\n+-----------------------+-------+\n1 row in set (0.00 sec)\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Because the server needed a quick resolution, it was concluded to reboot MySQL (as it was slave and feasible).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Changed my.cnf to set myisam_repair_threads to default (1) and rebooted MySQL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Later the repair table command then finished in 6 sec. (Much better with single thread, isn&#8217;t it?)<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">mysql&gt; repair table XXX;\n+---------------------------+--------+----------+----------+\n| Table                     | Op     | Msg_type | Msg_text |\n+---------------------------+--------+----------+----------+\n| my_db.XXX | repair | status   | OK       |\n+---------------------------+--------+----------+----------+\n1 row in set (6.58 sec)\n<\/pre>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Luckily&#8221; it was slave that faced the issue!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, myisam_repair_threads is The Only beta quality variable listed on MySQL documentation. The variable myisam_repair_threads is in beta quality since ages and the latest MySQL 5.7 is no good for that too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is already a <a href=\"https:\/\/bugs.mysql.com\/bug.php?id=25648\" target=\"_blank\" rel=\"nofollow noopener\">bug<\/a> report conveying the risk. I looked at MariaDB &amp; Percona. Neither mariaDB mention &#8220;beta&#8221; around this feature (not sure if they&#8217;ve a fix!!) nor I see any mention of this in Percona MySQL documentation. I&#8217;d rather remove it than putting it in beta for so long and risking production instances!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anyways, time for conclusion?<br><span style=\"text-decoration: underline;\">Do not increase myisam_repair_threads from it&#8217;s sensible default 1. Do not use it at all. Just forget it!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"This post explains on the usage of mysql_repair_threads for repairing myisam table &#038; the processlist status Repair with N threads\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[410,408,412,409,411,413],"class_list":["post-2341","post","type-post","status-publish","format-standard","category-mysql","category-mysql-articles","tag-corrupt","tag-myisam","tag-mysql_repair_threads","tag-repair","tag-repair-with-n-threads","tag-repair-with-threads"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"This post explains on the usage of mysql_repair_threads for repairing myisam table &amp; the processlist status &quot;Repair with N threads&quot;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"myisam,repair,corrupt,repair with n threads,mysql_repair_threads,repair with threads\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"This post explains on the usage of mysql_repair_threads for repairing myisam table &amp; the processlist status &quot;Repair with N threads&quot;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-12-07T11:25:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-04-28T04:13:35+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This post explains on the usage of mysql_repair_threads for repairing myisam table &amp; the processlist status &quot;Repair with N threads&quot;\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#article\",\"name\":\"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable\",\"headline\":\"corrupted \\\/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2015-12-07T11:25:49+00:00\",\"dateModified\":\"2023-04-28T04:13:35+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#webpage\"},\"articleSection\":\"MySQL, MySQL-Articles, corrupt, MyISAM, mysql_repair_threads, repair, repair with N threads, repair with threads\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"position\":3,\"name\":\"MySQL-Articles\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#listItem\",\"name\":\"corrupted \\\/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#listItem\",\"position\":4,\"name\":\"corrupted \\\/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads\",\"name\":\"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable\",\"description\":\"This post explains on the usage of mysql_repair_threads for repairing myisam table & the processlist status \\\"Repair with N threads\\\"\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2015-12-07T11:25:49+00:00\",\"dateModified\":\"2023-04-28T04:13:35+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable","description":"This post explains on the usage of mysql_repair_threads for repairing myisam table & the processlist status \"Repair with N threads\"","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads","robots":"max-image-preview:large","keywords":"myisam,repair,corrupt,repair with n threads,mysql_repair_threads,repair with threads","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#article","name":"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable","headline":"corrupted \/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2015-12-07T11:25:49+00:00","dateModified":"2023-04-28T04:13:35+00:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#webpage"},"articleSection":"MySQL, MySQL-Articles, corrupt, MyISAM, mysql_repair_threads, repair, repair with N threads, repair with threads"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","position":3,"name":"MySQL-Articles","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#listItem","name":"corrupted \/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#listItem","position":4,"name":"corrupted \/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads","name":"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable","description":"This post explains on the usage of mysql_repair_threads for repairing myisam table & the processlist status \"Repair with N threads\"","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2015-12-07T11:25:49+00:00","dateModified":"2023-04-28T04:13:35+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable","og:description":"This post explains on the usage of mysql_repair_threads for repairing myisam table &amp; the processlist status &quot;Repair with N threads&quot;","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads","article:published_time":"2015-12-07T11:25:49+00:00","article:modified_time":"2023-04-28T04:13:35+00:00","twitter:card":"summary","twitter:title":"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | Change Is Inevitable","twitter:description":"This post explains on the usage of mysql_repair_threads for repairing myisam table &amp; the processlist status &quot;Repair with N threads&quot;"},"aioseo_meta_data":{"post_id":"2341","title":"corruption in MyISAM + mysql_repair_threads = stuck Repair with N threads | #site_title","description":"This post explains on the usage of mysql_repair_threads for repairing myisam table &amp; the processlist status &quot;Repair with N threads&quot;","keywords":[{"label":"MyISAM","value":"MyISAM"},{"label":"repair","value":"repair"},{"label":"corrupt","value":"corrupt"},{"label":"repair with N threads","value":"repair with N threads"},{"label":"mysql_repair_threads","value":"mysql_repair_threads"},{"label":"repair with threads","value":"repair with threads"}],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:40:44","updated":"2025-08-16 19:16:14","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles\" title=\"MySQL-Articles\">MySQL-Articles<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tcorrupted \/ crashed MyISAM + mysql_repair_threads = stuck \u201cRepair with N threads\u201d\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Articles","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles"},{"label":"corrupted \/ crashed MyISAM + mysql_repair_threads = stuck &#8220;Repair with N threads&#8221;","link":"https:\/\/kedar.nitty-witty.com\/blog\/corrupted-crashed-myisam-mysql_repair_threads-stuck-repair-with-n-threads"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=2341"}],"version-history":[{"count":12,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2341\/revisions"}],"predecessor-version":[{"id":2841,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2341\/revisions\/2841"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=2341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=2341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=2341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}