{"id":12426,"date":"2023-11-20T01:04:35","date_gmt":"2023-11-20T08:04:35","guid":{"rendered":"https:\/\/www.mysqltutorial.org\/?page_id=12426"},"modified":"2024-01-06T07:16:40","modified_gmt":"2024-01-06T14:16:40","slug":"mysql-check-table","status":"publish","type":"page","link":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/","title":{"rendered":"MySQL CHECK TABLE Statement"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn how to use the MySQL <code>CHECK TABLE<\/code> statement to check one or more tables or views for errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to MySQL CHECK TABLE statement<\/h2>\n\n\n\n<p>The <code>CHECK TABLE<\/code> statement allows you to check one or more tables for errors.<\/p>\n\n\n\n<p>The following shows the syntax of the <code>CHECK TABLE<\/code> statement:<\/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\">CHECK<\/span> <span class=\"hljs-keyword\">TABLE<\/span> tbl_name, &#91;,table_name]...\n&#91;<span class=\"hljs-keyword\">option<\/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<p>In this syntax:<\/p>\n\n\n\n<p>First, specify one or more names of the tables you want to check for errors.<\/p>\n\n\n\n<p>Second, specify one or more options that can be:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>FOR<\/code> <code>UPGRADE<\/code><\/li>\n\n\n\n<li><code>QUICK<\/code><\/li>\n\n\n\n<li><code>FAST<\/code><\/li>\n\n\n\n<li><code>MEDIUM<\/code><\/li>\n\n\n\n<li><code>EXTENDED<\/code><\/li>\n\n\n\n<li><code>CHANGED<\/code><\/li>\n<\/ul>\n\n\n\n<p>The <code>CHECK<\/code> <code>TABLE<\/code> statement works for <a href=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-innodb-storage-engine\/\">InnoDB<\/a>, <a href=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-myisam\/\">MyISAM<\/a>, <a href=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-archive-storage-engine\/\">ARCHIVE<\/a>, and <a href=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-csv-storage-engine\/\">CSV<\/a> tables.<\/p>\n\n\n\n<p>The storage engine may accept or ignore the option of the <code>CHECK TABLE<\/code> statement.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Storage Engines<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td><code>QUICK<\/code><\/td><td>Applies to <code>InnoDB<\/code> &amp; MyISAM<\/td><td>Do not scan the rows for incorrect links.<\/td><\/tr><tr><td><code>FAST<\/code><\/td><td>Applies to MyISAM. Ignored for <code>InnoDB<\/code>.<\/td><td>Check only tables that have not been properly closed.<\/td><\/tr><tr><td><code>CHANGED<\/code><\/td><td>Applies to MyISAM. Ignored for <code>InnoDB<\/code>.<\/td><td>Check tables that have either been modified since the last check or have not been properly closed.<\/td><\/tr><tr><td><code>MEDIUM<\/code><\/td><td>Applies to MyISAM. Ignored for <code>InnoDB<\/code>.<\/td><td>Scan rows to verify the validity of deleted links. This process also calculates a key checksum for the rows and checks it against the calculated checksum for the keys.<\/td><\/tr><tr><td><code>EXTENDED<\/code><\/td><td>Applies to MyISAM. Ignored for <code>InnoDB<\/code>.<\/td><td>Perform a complete key lookup for all keys associated with each row. This guarantees 100% consistency in the table but is a time-consuming process.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The <code>CHECK<\/code> <code>TABLE<\/code> statement also checks views for problems. For example, it can check if a view references tables that do not exist. <\/p>\n\n\n\n<p>The <code>CHECK<\/code> <code>TABLE<\/code> returns a result set that includes four columns:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Column<\/th><th>Value<\/th><\/tr><\/thead><tbody><tr><td><code>Table<\/code><\/td><td>The table name that has been checked<\/td><\/tr><tr><td><code>Op<\/code><\/td><td>Always&nbsp;<code>check<\/code><\/td><\/tr><tr><td><code>Msg_type<\/code><\/td><td><code>status<\/code>,&nbsp;<code>error<\/code>,&nbsp;<code>info<\/code>,&nbsp;<code>note<\/code>, or&nbsp;<code>warning<\/code><\/td><\/tr><tr><td><code>Msg_text<\/code><\/td><td>An informational message<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The <code>CHECK<\/code> <code>TABLE<\/code> statement might generate multiple rows of information for each checked table or view. The last row should have a <code>Msg_type<\/code> value of <code>status<\/code> and the <code>Msg_text<\/code> should typically be <code>OK<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MySQL CHECK TABLE statement examples<\/h2>\n\n\n\n<p>Let&#8217;s take some examples of using the <code>CHECK<\/code> <code>TABLE<\/code> statement.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1) Using the CHECK TABLE to check for errors in tables<\/h3>\n\n\n\n<p>First, log in to the MySQL database server using the root account:<\/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\">mysql -u root -p<\/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<p>It&#8217;ll prompt you to enter the password. Enter the valid password to log in:<\/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\">Enter password: ********<\/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\n<p>Second, switch the current database to <code>classicmodels<\/code> <a href=\"https:\/\/www.mysqltutorial.org\/getting-started-with-mysql\/mysql-sample-database\/\">sample database<\/a>:<\/p>\n\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\"><span class=\"hljs-keyword\">use<\/span> classicmodels;<\/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>Third, check the tables <code>customers<\/code> and <code>products<\/code> for errors:<\/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\">CHECK<\/span> <span class=\"hljs-keyword\">TABLE<\/span> customers, products;<\/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>Output:<\/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-comment\">-------------------------+-------+----------+----------+<\/span>\n| Table                   | Op    | Msg_type | Msg_text |\n+<span class=\"hljs-comment\">-------------------------+-------+----------+----------+<\/span>\n| classicmodels.customers | <span class=\"hljs-keyword\">check<\/span> | <span class=\"hljs-keyword\">status<\/span>   | OK       |\n| classicmodels.products  | <span class=\"hljs-keyword\">check<\/span> | <span class=\"hljs-keyword\">status<\/span>   | OK       |\n+<span class=\"hljs-comment\">-------------------------+-------+----------+----------+<\/span>\n<span class=\"hljs-number\">2<\/span> <span class=\"hljs-keyword\">rows<\/span> <span class=\"hljs-keyword\">in<\/span> <span class=\"hljs-keyword\">set<\/span> (<span class=\"hljs-number\">0.03<\/span> sec)<\/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<p>The output shows that both tables have no errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2) Using the MySQL CHECK TABLE to check for errors in a view<\/h3>\n\n\n\n<p>First, <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-create-database\/\">create a database<\/a> called test:<\/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\">CREATE<\/span> <span class=\"hljs-keyword\">DATABASE<\/span> <span class=\"hljs-keyword\">IF<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">EXISTS<\/span> <span class=\"hljs-keyword\">test<\/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>Second, switch to the <code>test<\/code> database:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-keyword\">USE<\/span> <span class=\"hljs-title\">test<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Third, <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-create-table\/\">create a table<\/a> called <code>employees<\/code> in the <code>test<\/code> database:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> employees(\n  <span class=\"hljs-keyword\">id<\/span> <span class=\"hljs-built_in\">INT<\/span> AUTO_INCREMENT PRIMARY <span class=\"hljs-keyword\">KEY<\/span>, \n  first_name <span class=\"hljs-built_in\">VARCHAR<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>, \n  last_name <span class=\"hljs-built_in\">VARCHAR<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>, \n  email <span class=\"hljs-built_in\">VARCHAR<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>, \n  phone <span class=\"hljs-built_in\">VARCHAR<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>\n);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><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>Fourth, create a view called <code>contacts<\/code> based on the <code>employees<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">VIEW<\/span> contacts <span class=\"hljs-keyword\">AS<\/span> \n<span class=\"hljs-keyword\">SELECT<\/span> \n  <span class=\"hljs-keyword\">concat_ws<\/span>(<span class=\"hljs-string\">' '<\/span>, first_name, last_name) <span class=\"hljs-keyword\">as<\/span> <span class=\"hljs-keyword\">name<\/span>, \n  email, \n  phone \n<span class=\"hljs-keyword\">FROM<\/span> \n  employees;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><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>Fifth, drop the table <code>employees<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">DROP<\/span> <span class=\"hljs-keyword\">TABLE<\/span> employees;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><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>Finally, check the view <code>contacts<\/code> for the error:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CHECK<\/span> <span class=\"hljs-keyword\">TABLE<\/span> contacts\\G;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><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>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">*************************** 1. row ***************************\n   Table: test.contacts\n      Op: <span class=\"hljs-keyword\">check<\/span>\nMsg_type: <span class=\"hljs-keyword\">Error<\/span>\nMsg_text: <span class=\"hljs-keyword\">View<\/span> <span class=\"hljs-string\">'test.contacts'<\/span> <span class=\"hljs-keyword\">references<\/span> invalid <span class=\"hljs-keyword\">table<\/span>(s) <span class=\"hljs-keyword\">or<\/span> <span class=\"hljs-keyword\">column<\/span>(s) <span class=\"hljs-keyword\">or<\/span> <span class=\"hljs-keyword\">function<\/span>(s) <span class=\"hljs-keyword\">or<\/span> definer\/invoker <span class=\"hljs-keyword\">of<\/span> <span class=\"hljs-keyword\">view<\/span> lack rights <span class=\"hljs-keyword\">to<\/span> <span class=\"hljs-keyword\">use<\/span> them\n*************************** <span class=\"hljs-number\">2.<\/span> <span class=\"hljs-keyword\">row<\/span> ***************************\n   <span class=\"hljs-keyword\">Table<\/span>: test.contacts\n      Op: <span class=\"hljs-keyword\">check<\/span>\nMsg_type: <span class=\"hljs-keyword\">error<\/span>\nMsg_text: Corrupt\n<span class=\"hljs-number\">2<\/span> <span class=\"hljs-keyword\">rows<\/span> <span class=\"hljs-keyword\">in<\/span> <span class=\"hljs-keyword\">set<\/span> (<span class=\"hljs-number\">0.00<\/span> sec)\n\n<span class=\"hljs-keyword\">ERROR<\/span>:\n<span class=\"hljs-keyword\">No<\/span> <span class=\"hljs-keyword\">query<\/span> specified<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><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 class=\"note\">Note that the <code>\\G<\/code> instructs mysql to display the result in a more readable, vertical format rather than a traditional horizontal, table-based layout.<\/p>\n\n\n\n<p>The first row indicates that the view references an invalid table and the second row specifies that the view is corrupt.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the MySQL <code>CHECK TABLE<\/code> statement to check one or more tables or views for errors.<\/li>\n<\/ul>\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=\"12426\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/\"\n\t\t\t\tdata-post-title=\"MySQL CHECK TABLE Statement\"\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=\"12426\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/\"\n\t\t\t\tdata-post-title=\"MySQL CHECK TABLE Statement\"\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 use the MySQL CHECK TABLE statement to check one or more tables or views for errors.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":441,"menu_order":53,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-12426","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>MySQL CHECK TABLE Statement<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to use the MySQL CHECK TABLE statement to check one or more tables or views for errors.\" \/>\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-check-table\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL CHECK TABLE Statement\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn how to use the MySQL CHECK TABLE statement to check one or more tables or views for errors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/\" \/>\n<meta property=\"og:site_name\" content=\"MySQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-06T14:16:40+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 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-check-table\\\/\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-check-table\\\/\",\"name\":\"MySQL CHECK TABLE Statement\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\"},\"datePublished\":\"2023-11-20T08:04:35+00:00\",\"dateModified\":\"2024-01-06T14:16:40+00:00\",\"description\":\"In this tutorial, you will learn how to use the MySQL CHECK TABLE statement to check one or more tables or views for errors.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-check-table\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-check-table\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/mysql-check-table\\\/#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\":\"MySQL CHECK TABLE Statement\"}]},{\"@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":"MySQL CHECK TABLE Statement","description":"In this tutorial, you will learn how to use the MySQL CHECK TABLE statement to check one or more tables or views for errors.","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-check-table\/","og_locale":"en_US","og_type":"article","og_title":"MySQL CHECK TABLE Statement","og_description":"In this tutorial, you will learn how to use the MySQL CHECK TABLE statement to check one or more tables or views for errors.","og_url":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/","og_site_name":"MySQL Tutorial","article_modified_time":"2024-01-06T14:16:40+00:00","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/","url":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/","name":"MySQL CHECK TABLE Statement","isPartOf":{"@id":"https:\/\/www.mysqltutorial.org\/#website"},"datePublished":"2023-11-20T08:04:35+00:00","dateModified":"2024-01-06T14:16:40+00:00","description":"In this tutorial, you will learn how to use the MySQL CHECK TABLE statement to check one or more tables or views for errors.","breadcrumb":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mysqltutorial.org\/mysql-administration\/mysql-check-table\/#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":"MySQL CHECK TABLE Statement"}]},{"@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\/12426","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=12426"}],"version-history":[{"count":4,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/12426\/revisions"}],"predecessor-version":[{"id":14342,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/12426\/revisions\/14342"}],"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=12426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}