{"id":455,"date":"2017-02-19T14:40:34","date_gmt":"2017-02-19T14:40:34","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=455"},"modified":"2020-03-25T14:42:29","modified_gmt":"2020-03-25T14:42:29","slug":"how-to-check-or-repair-mysql-database","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-check-or-repair-mysql-database\/","title":{"rendered":"How to Check or Repair a MySQL Database?"},"content":{"rendered":"<p>In this article, we will show you how to check for error or repair a MySQL database through cPanel or phpMyadmin. This can easily be done by following the steps listed in this step by step article.<\/p>\n<h3 id=\"though-cpanel\">Though cPanel<\/h3>\n<p><strong>1)<\/strong>\u00a0<strong><a style=\"color: #2a94e5; box-sizing: border-box; text-decoration: none; outline: none; background: none; line-height: 1; display: inline-block;\" href=\"https:\/\/chemicloud.com\/kb\/article\/login-cpanel-whm-account\/\">Log into cPanel<\/a><\/strong>.<\/p>\n<p><strong>2)<\/strong> Look for the &#8220;<strong>DATABASES<\/strong>&#8221; section and click on\u00a0<strong>&#8220;MySQL\u00ae Databases&#8221;<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_695\" aria-describedby=\"caption-attachment-695\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Databases-MySQL\u00ae-Databases.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-695\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Databases-MySQL\u00ae-Databases-1024x354.png\" alt=\"\" width=\"840\" height=\"290\" \/><\/a><figcaption id=\"caption-attachment-695\" class=\"wp-caption-text\">cPanel &gt; Databases &gt; MySQL\u00ae Databases<\/figcaption><\/figure>\n<p><strong>3)<\/strong> Look for the\u00a0<strong>&#8220;Modify Databases&#8221;<\/strong>\u00a0section, here you can either check for errors or repair\u00a0a\u00a0MySQL database. Select the database you want to <strong>check<\/strong> from the drop down menu and click on the &#8220;<strong>Check Database<\/strong>&#8221; button.<\/p>\n<p>To <strong>repair<\/strong> a corrupted database\u00a0just the database you want to check from the drop down menu and click on the &#8220;<strong>Repair Database<\/strong>&#8221; button.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_696\" aria-describedby=\"caption-attachment-696\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-MySQL\u00ae-Databases.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-696\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-MySQL\u00ae-Databases-1024x334.png\" alt=\"\" width=\"840\" height=\"274\" \/><\/a><figcaption id=\"caption-attachment-696\" class=\"wp-caption-text\">Modify Databases &gt; Check or Repair database<\/figcaption><\/figure>\n<p>A new interface will appear\u00a0and the system will attempt to automatically check\/repair the database.\u00a0If the system cannot repair the database, it will attempt to determine the source of the corrupt data.<\/p>\n<p>That&#8217;s it! Now you know how to check or repair database tables through cPanel.<\/p>\n<h3 id=\"through-phpmyadmin\">Through phpMyAdmin<\/h3>\n<p><strong>1)<\/strong>\u00a0<a href=\"https:\/\/chemicloud.com\/kb\/article\/login-cpanel-whm-account\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into cPanel<\/a>.<\/p>\n<p><strong>2)<\/strong> Look for the &#8220;<strong>DATABASES&#8221;<\/strong>\u00a0section and click on &#8220;phpMyAdmin&#8221;. You&#8217;ll be redirected to the\u00a0phpMyAdmin interface.<\/p>\n<figure id=\"attachment_697\" aria-describedby=\"caption-attachment-697\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Databases-phpMyAdmin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-697\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Databases-phpMyAdmin-1024x300.png\" alt=\"\" width=\"840\" height=\"246\" \/><\/a><figcaption id=\"caption-attachment-697\" class=\"wp-caption-text\">cPanel &gt; Databases &gt; phpMyAdmin<\/figcaption><\/figure>\n<p><strong>3)<\/strong> From this new screen, we\u00a0have direct access to all the databases created under this cPanel account, they are all listed on the left side.<\/p>\n<figure id=\"attachment_698\" aria-describedby=\"caption-attachment-698\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/phpMyAdmin-interface.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-698\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/phpMyAdmin-interface-1024x342.png\" alt=\"\" width=\"840\" height=\"281\" \/><\/a><figcaption id=\"caption-attachment-698\" class=\"wp-caption-text\">phpMyAdmin interface<\/figcaption><\/figure>\n<p><strong>4)<\/strong> Select the database you wish to check or repair.<\/p>\n<p><strong>5)<\/strong> You will now see all the database&#8217;s tables. Select the table(s) you wish to check or repair, or simply click <strong>Check All<\/strong>\u00a0to select all tables.<\/p>\n<figure id=\"attachment_699\" aria-describedby=\"caption-attachment-699\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/Select-database-in-phpMyAdmin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-699\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/Select-database-in-phpMyAdmin-1024x276.png\" alt=\"\" width=\"840\" height=\"226\" \/><\/a><figcaption id=\"caption-attachment-699\" class=\"wp-caption-text\">Select database &gt; Tick &#8216;Check All]&#8217; to select all tables<\/figcaption><\/figure>\n<p><strong>6)<\/strong> Click the drop-down <strong>With selected:\u00a0<\/strong>]and choose <em><strong>Check table<\/strong> or\u00a0<\/em><strong><em>Repair<\/em><em> table<\/em><\/strong>. This will execute the <em>CHECK\/<\/em><em>REPAIR TABLE<\/em> SQL query on the selected tables and they will be checked or repaired.<\/p>\n<figure id=\"attachment_700\" aria-describedby=\"caption-attachment-700\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/checkrepair-table-in-phpMyAdmin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-700 size-large\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/checkrepair-table-in-phpMyAdmin-1024x276.png\" alt=\"\" width=\"840\" height=\"226\" \/><\/a><figcaption id=\"caption-attachment-700\" class=\"wp-caption-text\">Click the drop-down With selected: and choose Check table or Repair table<\/figcaption><\/figure>\n<p><strong>That&#8217;s it! Now you know how to check or repair database tables through phpMyAdmin.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you how to check for error or repair a MySQL database through cPanel or phpMyadmin. This can easily be done by following the steps listed in this step by step article. Though cPanel 1)\u00a0Log into cPanel. 2) Look for the &#8220;DATABASES&#8221; section and click&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[38],"ht-kb-tag":[],"class_list":["post-455","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-mysql"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":3,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/455\/revisions"}],"predecessor-version":[{"id":2121,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/455\/revisions\/2121"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=455"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}