{"id":117,"date":"2020-02-12T10:36:39","date_gmt":"2020-02-12T10:36:39","guid":{"rendered":"https:\/\/www.lcn.com\/support\/knowledge-base\/how-to-optimise-your-mysql-database\/"},"modified":"2020-09-09T11:09:27","modified_gmt":"2020-09-09T11:09:27","slug":"how-to-optimise-your-mysql-database","status":"publish","type":"ht_kb","link":"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/","title":{"rendered":"How to Optimise your MySQL Database"},"content":{"rendered":"<p>This guide will explain how to optimise MySQL database tables in phpMyAdmin. For customers using LCN <a href=\"https:\/\/www.lcn.com\/web-hosting\" target=\"_blank\" rel=\"noopener noreferrer\">Web hosting<\/a> or <a href=\"https:\/\/www.lcn.com\/web-hosting\/wordpress\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress hosting<\/a>.<\/p>\n<p>Optimising tables reorganises the physical storage of table data, to reduce storage space used on disk and improve I\/O efficiency when accessing data within the table. Sometimes tables that are written to frequently can become poorly optimised which can result in wasted disk space being reserved by the table and can affect website performance by causing slower read\/writes to the database table.<\/p>\n<p>Let\u2019s get started\u2026<\/p>\n<h3>How to access phpMyAdmin<\/h3>\n<p>To optimise tables within your MySQL database you\u2019ll need to log in to the phpMyAdmin control panel. Simply type <strong>http:\/\/www.domain.com\/mysqladmin\/<\/strong> into your browser&#8217;s address bar (replace <i>domain.com<\/i> with your actual domain name). You will be prompted to enter your MySQL database username and password, which you set when you created your database.<\/p>\n<p>If your site was set up using one of our Web Apps such as <strong>Joomla<\/strong> or <strong>WordPress<\/strong>, the database login details will have been set automatically by our system. You can find these details within the configuration file for the site via FTP as follows:<\/p>\n<ul>\n<li>In <strong>WordPress<\/strong>, these can be found in the <strong>wp-config.php<\/strong> file<\/li>\n<li>In <strong>Joomla<\/strong>, these can be found in the <strong>configuration.php<\/strong> file<\/li>\n<li>In <strong>OpenCart<\/strong>, these can be found in the <strong>config.php<\/strong> file<\/li>\n<\/ul>\n<p>If you are not sure how to access your site via FTP we have a guide for this here.<\/p>\n<h3>How to optimise tables in phpMyAdmin<\/h3>\n<p>Now that you have accessed your database you can follow the steps below to optimise the database tables in phpMyAdmin:<\/p>\n<ol class=\"step_by_step\">\n<li>Log in to phpMyAdmin with your <strong>Database Username<\/strong> and <strong>Password<\/strong>, choose the correct <strong>Hostname<\/strong> from the <strong>Server Choice<\/strong> drop down.<\/li>\n<li>Once logged in, select the <strong>Database<\/strong> tab.<\/li>\n<li>Select the database e.g. domain_com_db<\/li>\n<li>Select the <strong>Check all<\/strong> checkbox below the list of database tables.<\/li>\n<li>Under the dropdown menu; <strong>With selected<\/strong>, select the option <strong>Optimize table<\/strong> \u2013 if this has been applied it should provide the output: <i>Your SQL query has been executed successfully.<\/i><\/li>\n<\/ol>\n<p><video autoplay=\"autoplay\" loop=\"loop\" muted=\"\" controls=\"controls\" width=\"100%\" height=\"100%\"><source src=\"\/support\/articles\/attachment\/874\/inline\/original\/1568720797\/DatabaseOpt.mp4\" \/>Your browser does not support the video tag.<\/video><\/p>\n<p>That\u2019s it! Your MySQL database tables should now be optimised.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will explain how to optimise MySQL database tables in phpMyAdmin. For customers using LCN Web hosting or WordPress hosting. Optimising tables reorganises the physical storage of table data, to reduce storage space used on disk and improve I\/O efficiency when accessing data within the table. Sometimes tables that are written to frequently can [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[7],"ht-kb-tag":[5,8],"class_list":["post-117","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-creating-and-managing-databases","ht_kb_tag-web-hosting","ht_kb_tag-wordpress-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Optimise your MySQL Database - LCN.com<\/title>\n<meta name=\"description\" content=\"A simple guide to show LCN customers how to optimise their database tables using phpMyAdmin.\" \/>\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.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Optimise your MySQL Database - LCN.com\" \/>\n<meta property=\"og:description\" content=\"A simple guide to show LCN customers how to optimise their database tables using phpMyAdmin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Customer Support Guides - LCN\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/lcndotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-09T11:09:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@lcndotcom\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/\",\"url\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/\",\"name\":\"How to Optimise your MySQL Database - LCN.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#website\"},\"datePublished\":\"2020-02-12T10:36:39+00:00\",\"dateModified\":\"2020-09-09T11:09:27+00:00\",\"description\":\"A simple guide to show LCN customers how to optimise their database tables using phpMyAdmin.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lcn.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Optimise your MySQL Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lcn.com\/support\/#website\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"name\":\"Customer Support Guides - LCN\",\"description\":\"- LCN\",\"publisher\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lcn.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\",\"name\":\"LCN.com\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"contentUrl\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"width\":461,\"height\":461,\"caption\":\"LCN.com\"},\"image\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/lcndotcom\",\"https:\/\/x.com\/lcndotcom\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Optimise your MySQL Database - LCN.com","description":"A simple guide to show LCN customers how to optimise their database tables using phpMyAdmin.","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.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/","og_locale":"en_US","og_type":"article","og_title":"How to Optimise your MySQL Database - LCN.com","og_description":"A simple guide to show LCN customers how to optimise their database tables using phpMyAdmin.","og_url":"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/","og_site_name":"Customer Support Guides - LCN","article_publisher":"https:\/\/www.facebook.com\/lcndotcom","article_modified_time":"2020-09-09T11:09:27+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@lcndotcom","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/","url":"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/","name":"How to Optimise your MySQL Database - LCN.com","isPartOf":{"@id":"https:\/\/www.lcn.com\/support\/#website"},"datePublished":"2020-02-12T10:36:39+00:00","dateModified":"2020-09-09T11:09:27+00:00","description":"A simple guide to show LCN customers how to optimise their database tables using phpMyAdmin.","breadcrumb":{"@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-optimise-your-mysql-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lcn.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Optimise your MySQL Database"}]},{"@type":"WebSite","@id":"https:\/\/www.lcn.com\/support\/#website","url":"https:\/\/www.lcn.com\/support\/","name":"Customer Support Guides - LCN","description":"- LCN","publisher":{"@id":"https:\/\/www.lcn.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lcn.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.lcn.com\/support\/#organization","name":"LCN.com","url":"https:\/\/www.lcn.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","contentUrl":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","width":461,"height":461,"caption":"LCN.com"},"image":{"@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/lcndotcom","https:\/\/x.com\/lcndotcom"]}]}},"_links":{"self":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":2,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/117\/revisions"}],"predecessor-version":[{"id":1372,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/117\/revisions\/1372"}],"wp:attachment":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=117"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}