{"id":20,"date":"2009-01-01T07:38:23","date_gmt":"2009-01-01T02:08:23","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=20"},"modified":"2014-06-24T18:58:58","modified_gmt":"2014-06-24T18:58:58","slug":"perl-script-for-analyze-optimize-repair-mysql-databases","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases","title":{"rendered":"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases"},"content":{"rendered":"<p class=\"MsoNormal\">The perl script is mainly created to avoid manual Mysql Server Maintenance. The script uses Perl module DBI. You need to provide access credentials and database name(optional). Regarding Analyse, Optimize and Repair you may ofcourse refer dev.mysql.com.<\/p>\n<p class=\"MsoNormal\">\n<p class=\"MsoNormal\">OPTIMIZE TABLE should be used if you have deleted a large part of a table or if you have made many changes to a table with variable-length rows (tables that have VARCHAR, VARBINARY, BLOB, or TEXT columns). Deleted rows are maintained in a linked list and subsequent INSERT operations reuse old row positions. You can use OPTIMIZE TABLE to reclaim the unused space and to defragment the data file.<\/p>\n<p class=\"MsoNormal\">\n<p class=\"MsoNormal\">REPAIR TABLE repairs a possibly corrupted table. By default, it has the same effect as myisamchk &#8211;recover tbl_name. REPAIR TABLE works for MyISAM and for ARCHIVE tables.<\/p>\n<p class=\"MsoNormal\">\n<p class=\"MsoNormal\">ANALYZE TABLE analyzes and stores the key distribution for a table. During the analysis, the table is locked with a read lock for MyISAM and BDB. For InnoDB the table is locked with a write lock. This statement works with MyISAM, BDB, and InnoDB tables. For MyISAM tables, this statement is equivalent to using myisamchk &#8211;analyze.<\/p>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">The perl script is mainly created to avoid manual Mysql Server Maintenance. The script uses Perl module DBI. You need to provide access credentials and database name(optional). Regarding Analyse, Optimize and Repair you may ofcourse refer dev.mysql.com.<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">OPTIMIZE TABLE should be used if you have deleted a large part of a table or if you have made many changes to a table with variable-length rows (tables that have VARCHAR, VARBINARY, BLOB, or TEXT columns). Deleted rows are maintained in a linked list and subsequent INSERT operations reuse old row positions. You can use OPTIMIZE TABLE to reclaim the unused space and to defragment the data file.<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">REPAIR TABLE repairs a possibly corrupted table. By default, it has the same effect as myisamchk &#8211;recover tbl_name. REPAIR TABLE works for MyISAM and for ARCHIVE tables.<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">ANALYZE TABLE analyzes and stores the key distribution for a table. During the analysis, the table is locked with a read lock for MyISAM and BDB. For InnoDB the table is locked with a write lock. This statement works with MyISAM, BDB, and InnoDB tables. For MyISAM tables, this statement is equivalent to using myisamchk &#8211;analyze.<\/div>\n<p><code>use DBI;<br \/>\nmy $username;<br \/>\nmy $password;<br \/>\nmy $hostname;<br \/>\nmy $dbName;<br \/>\nmy $databasez;<br \/>\nmy $withRepair = 0; #1=enabled  ##Also checks and repairs the table if required.<br \/>\n$username='USERNAME';<br \/>\n$password='PASSWORD';<br \/>\n$hostname='HOSTNAME';<br \/>\n$dbName='';   #(Optional) considers all if left blank<br \/>\n$databasez='';<br \/>\n$dbName ='';<br \/>\nmy $port = 3307;<br \/>\nmy $dbh;<\/code><br \/>\n<code><br \/>\n$dbh = DBI-&gt;connect(\"dbi:mysql:database=$dbName;host=$hostname;$port\", trim($username), trim($password)) or die \"$DBI::errstr\";<br \/>\n<\/code><code><br \/>\nif(length(trim($databasez)) == 0)<br \/>\n{<br \/>\nmy $db_SQL=\"SHOW DATABASES;\";<br \/>\n$sth=$dbh-&gt;prepare($db_SQL);<br \/>\n$sth-&gt;execute();<br \/>\n<\/code><code><br \/>\nwhile($databasez = $sth-&gt;fetchrow_array())<br \/>\n{<br \/>\nif ((trim($databasez) eq \"information_schema\")  or (trim($databasez) eq \"mysql\")) {<br \/>\nnext;<br \/>\n}<br \/>\ntablesCount($databasez);<br \/>\n}<br \/>\n}<br \/>\nelse {<br \/>\ntablesCount($databasez);<br \/>\n}<br \/>\n<\/code><code><br \/>\nsub trim($)<br \/>\n{<br \/>\nmy $string = shift;<br \/>\n$string =~ s\/^\\s+\/\/;<br \/>\n$string =~ s\/\\s+$\/\/;<br \/>\nreturn $string;<br \/>\n}<br \/>\n<\/code><code><br \/>\nsub execute($)<br \/>\n{<br \/>\nmy $sth_analyze_table = $dbh-&gt;prepare(shift);<br \/>\n$sth_analyze_table-&gt;execute() or $dbh-&gt;errstr;<br \/>\nmy $status2 = $sth_analyze_table-&gt;fetchrow_array();<br \/>\nprintf \"%35s %10s %10s\\n\",$tablez,$status,$status2;<br \/>\n}<br \/>\n<\/code><code><br \/>\nsub tablesCount($)<br \/>\n{<br \/>\nmy $Line = \"-----------------\";<br \/>\nprintf \"\\n%20s\\n\",$Line;<br \/>\nprintf \"\\nDatabase:%35s\\n\",$databasez;<br \/>\nprintf \"\\n%35s %10s %10s\\n\",\"Table Name\" ,\"Status\", \"Repair Status\";<br \/>\nprintf \"\\n%20s\\n\",$Line;<br \/>\nmy $tables_SQL = \"SHOW TABLES FROM $databasez;\";<br \/>\nmy $sth_table=$dbh-&gt;prepare($tables_SQL);<br \/>\n$sth_table-&gt;execute();<br \/>\nwhile($tablez = $sth_table-&gt;fetchrow_array())<br \/>\n{<br \/>\nmy $analyze_tables_SQL = \"ANALYZE TABLE $databasez.$tablez;\";<br \/>\nmy $optimize_table_SQL = \"OPTIMIZE TABLE $databasez.$tablez;\";<br \/>\nmy $check_tables_SQL = \"repair table $databasez.$tablez;\";<br \/>\n<\/code><code><br \/>\nexecute($analyze_tables_SQL);<br \/>\nexecute($optimize_table_SQL);<br \/>\n<\/code><code><br \/>\nif ($withRepair == 1)<br \/>\n{<br \/>\nmy $check_tables_SQL = \"check table $databasez.$tablez;\";<br \/>\nmy $sth_check_table=$dbh-&gt;prepare($check_tables_SQL);<br \/>\n$sth_check_table-&gt;execute() or $dbh-&gt;errstr;<br \/>\nmy $status = $sth_check_table-&gt;fetchrow_array();<br \/>\n<\/code><code><br \/>\nif(trim($status) ne 'OK')<br \/>\n{<br \/>\nprint \"Attempting Repair: $databasez.$tablez \\n\";<br \/>\nmy $check_tables_SQL = \"repair table $databasez.$tablez;\";<br \/>\nexecute($check_tables_SQL);<br \/>\nmy $status2 = $sth_check_table-&gt;fetchrow_array();<br \/>\nprintf \"%35s %10s %10s\\n\",$tablez,$status,$status2;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\nprintf \"%35s %10s %10s\\n\",$tablez,$status,\"NA\";<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>Download <a href='http:\/\/kedar.nitty-witty.com\/wp-content\/uploads\/2009\/01\/mysql-maintenance.pl_.txt'><b>mysql-maintenance.pl<\/b><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"The perl script is mainly created to avoid manual Mysql Server Maintenance. The script uses Perl module DBI. You need to provide access credentials and database name(optional). Regarding Analyse, Optimize&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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,378],"tags":[427,347,345,83,346,344,426],"class_list":["post-20","post","type-post","status-publish","format-standard","category-mysql","category-mysql-scripts-mysql","tag-mysql","tag-mysql-maintenance","tag-optimize-table","tag-perl","tag-perl-script","tag-repair-table","tag-technical"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Perl Script for Analyze - Optimize - Repair Mysql Databases\" \/>\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=\"repair table,optimize table,perl script,mysql maintenance,mysql,perl,technical\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases\" \/>\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=\"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"Perl Script for Analyze - Optimize - Repair Mysql Databases\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-01-01T02:08:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-06-24T18:58:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Perl Script for Analyze - Optimize - Repair Mysql Databases\" \/>\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\\\/perl-script-for-analyze-optimize-repair-mysql-databases#article\",\"name\":\"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable\",\"headline\":\"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases\",\"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\\\/perl-script-for-analyze-optimize-repair-mysql-databases#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2009-01-01T07:38:23+00:00\",\"dateModified\":\"2014-06-24T18:58:58+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#webpage\"},\"articleSection\":\"MySQL, MySQL-Scripts, MySQL, MySQL Maintenance, Optimize Table, perl, Perl Script, Repair table, Technical\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#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-scripts-mysql#listItem\",\"name\":\"MySQL-Scripts\"},\"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-scripts-mysql#listItem\",\"position\":3,\"name\":\"MySQL-Scripts\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-scripts-mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#listItem\",\"name\":\"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#listItem\",\"position\":4,\"name\":\"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-scripts-mysql#listItem\",\"name\":\"MySQL-Scripts\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#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\\\/perl-script-for-analyze-optimize-repair-mysql-databases#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\\\/perl-script-for-analyze-optimize-repair-mysql-databases#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases\",\"name\":\"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable\",\"description\":\"Perl Script for Analyze - Optimize - Repair Mysql Databases\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/perl-script-for-analyze-optimize-repair-mysql-databases#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2009-01-01T07:38:23+00:00\",\"dateModified\":\"2014-06-24T18:58:58+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":"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable","description":"Perl Script for Analyze - Optimize - Repair Mysql Databases","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases","robots":"max-image-preview:large","keywords":"repair table,optimize table,perl script,mysql maintenance,mysql,perl,technical","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#article","name":"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable","headline":"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases","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\/perl-script-for-analyze-optimize-repair-mysql-databases#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2009-01-01T07:38:23+00:00","dateModified":"2014-06-24T18:58:58+00:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#webpage"},"articleSection":"MySQL, MySQL-Scripts, MySQL, MySQL Maintenance, Optimize Table, perl, Perl Script, Repair table, Technical"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#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-scripts-mysql#listItem","name":"MySQL-Scripts"},"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-scripts-mysql#listItem","position":3,"name":"MySQL-Scripts","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#listItem","name":"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#listItem","position":4,"name":"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql#listItem","name":"MySQL-Scripts"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#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\/perl-script-for-analyze-optimize-repair-mysql-databases#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\/perl-script-for-analyze-optimize-repair-mysql-databases#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases","name":"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable","description":"Perl Script for Analyze - Optimize - Repair Mysql Databases","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2009-01-01T07:38:23+00:00","dateModified":"2014-06-24T18:58:58+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":"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable","og:description":"Perl Script for Analyze - Optimize - Repair Mysql Databases","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases","article:published_time":"2009-01-01T02:08:23+00:00","article:modified_time":"2014-06-24T18:58:58+00:00","twitter:card":"summary","twitter:title":"Perl Script for Analyze - Optimize - Repair Mysql Databases | Change Is Inevitable","twitter:description":"Perl Script for Analyze - Optimize - Repair Mysql Databases"},"aioseo_meta_data":{"post_id":"20","title":"Perl Script for Analyze - Optimize - Repair Mysql Databases | #site_title","description":"Perl Script for Analyze - Optimize - Repair Mysql Databases","keywords":[{"label":"Repair table","value":"Repair table"},{"label":"Optimize Table","value":"Optimize Table"},{"label":"Perl Script","value":"Perl Script"},{"label":"MySQL Maintenance","value":"MySQL Maintenance"}],"keyphrases":null,"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":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"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":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"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 18:58:30","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-scripts-mysql\" title=\"MySQL-Scripts\">MySQL-Scripts<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPerl Script for Analyze \u2013 Optimize \u2013 Repair Mysql Databases\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-Scripts","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql"},{"label":"Perl Script for Analyze &#8211; Optimize &#8211; Repair Mysql Databases","link":"https:\/\/kedar.nitty-witty.com\/blog\/perl-script-for-analyze-optimize-repair-mysql-databases"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/20","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=20"}],"version-history":[{"count":3,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":1830,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions\/1830"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}