{"id":45192,"date":"2020-03-21T20:23:09","date_gmt":"2020-03-21T20:23:09","guid":{"rendered":"https:\/\/www.awardspace.com\/?p=45192"},"modified":"2023-09-16T05:19:23","modified_gmt":"2023-09-16T05:19:23","slug":"reduce-mysql-database-size","status":"publish","type":"post","link":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/","title":{"rendered":"How Can I Reduce the Size of a MySQL Database?"},"content":{"rendered":"<p>Database software, such as MySQL, often employs various techniques to speed up the searching and delivery of any information that is requested. In most cases, these techniques take the form of temporary databases that are created to serve as intermediates and help you retrieve the requested data faster. The only downside to these additional databases is that they will consume extra disk space. In this article, we will show you the various ways in which you can reduce your MySQL database size.<\/p>\n<p>&nbsp;<\/p>\n<h2>How Do I Lower the Size of a MySQL Database?<\/h2>\n<p>There are two broad approaches you can take to reduce the size of a MySQL database. You can either try optimizing the database structure or you can delete any unnecessary data. Below we will examine both techniques in greater detail.<\/p>\n<p>&nbsp;<\/p>\n<h3>How Does Optimization for a MySQL Database Work?<\/h3>\n<p>As we mentioned earlier, MySQL databases often create internal tables in an effort to speed up lookup queries. However, these additional tables become less effective over time as you add new data and change existing entries. As such, it is a good idea to optimize your database from time to time. Not only will you reduce the overall size of your database, but you are also likely to see a performance boost as well!<\/p>\n<p>You have two options when it comes to optimizing a database on our shared hosting platform. You can either use our 1-click optimizer that is part of our Database Manager or you can go more hands-on using the tools provided by phpMyAdmin.<\/p>\n<p>&nbsp;<\/p>\n<h4>How Do I Optimize a MySQL Database Using the Database Manager?<\/h4>\n<p>You can easily and quickly optimize all tables in a given MySQL database thanks to the Database Manager section of our Control Panel. The Database Manager will be available to you if you are using our <a href=\"\/free-hosting\/\">free website hosting<\/a>, <a href=\"\/web-hosting\/shared-hosting\/\">premium shared hosting<\/a>, or one of our <a href=\"\/web-hosting\/semi-dedicated-hosting\/\">Semi-Dedicated web servers<\/a>. To optimize your database, follow these steps:<\/p>\n<ol>\n<li>Go to the <strong><a href=\"https:\/\/cp1.awardspace.net\/database-manager\/\">Database Manager<\/a><\/strong> section of our Control Panel.<\/li>\n<li>Click on the <strong>database name<\/strong> that you wish to optimize.<\/li>\n<li>Open the <strong>Management<\/strong> tab.<\/li>\n<li>Click on the option titled <strong>1-click Optimization<\/strong>.<\/li>\n<\/ol>\n<figure><a class=\"et_pb_lightbox_image\" title=\"You can reduce your MySQL database size in a single click thank to the optimization option in our Database Manager.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-1.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-1.png\" alt=\"You can reduce your MySQL database size in a single click thank to the optimization option in our Database Manager.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">You can reduce your MySQL database size in a single click thanks to the optimization option in our Database Manager.<\/figcaption><\/figure>\n<p>Once you perform the above actions, all tables in your database will be optimized. Keep in mind that our database usage statistics are not updated in real-time, so you may not notice an immediate difference in database usage. To learn more about the various features our Database Manager has to offer, you may go through our <a href=\"\/kb\/database-manager\/\">complete guide to the Database Manager<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h4>How Do I Optimize the Tables of a MySQL Database Using phpMyAdmin?<\/h4>\n<p>Unlike our Database Manager which optimizes all tables in one fell swoop, phpMyAdmin gives you much more granular control when it comes to which tables should be optimized and which tables should remain unchanged. Below we will examine two techniques for reducing table sizes through phpMyAdmin: the <em>Optimize<\/em> option as well as compressing data from tables that use the InnoDB storage engine.<\/p>\n<p>In addition to table optimization, phpMyAdmin provides you with a plethora of other options that you might find useful. You can learn more about this handy utility in our <a href=\"#\">phpMyAdmin overview<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h5>How Do I Reduce My Table Size Using the Optimize Feature in phpMyAdmin?<\/h5>\n<p>Follow the steps below in order to optimize the tables in your MySQL database using the optimization function in phpMyAdmin:<\/p>\n<ol>\n<li>Open the <strong><a href=\"https:\/\/cp1.awardspace.net\/database-manager\/\">Database Manager<\/a><\/strong> section of the Control Panel.<\/li>\n<li>Click on the <strong>database name<\/strong> that you wish to optimize.<\/li>\n<li>Open the <strong>Management<\/strong> tab.<\/li>\n<li>Click on the <strong>phpMyAdmin option<\/strong> as is shown below:<\/li>\n<\/ol>\n<figure><a class=\"et_pb_lightbox_image\" title=\"You can easily access the phpMyAdmin utility using a link in the Management tab of our Database Manager.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-2.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-2.png\" alt=\"You can easily access the phpMyAdmin utility using a link in the Management tab of our Database Manager.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">You can easily access the phpMyAdmin utility using a link in the Management tab of our Database Manager.<\/figcaption><\/figure>\n<ol start=\"5\">\n<li style=\"list-style-type: none;\">\n<ol start=\"5\">\n<li style=\"list-style-type: none;\">\n<ul>\n<li>phpMyAdmin will now open in a new tab and you will be presented with the list of tables that comprise the database. <strong>Place checkmarks<\/strong> in front of the tables that you wish to optimize.<\/li>\n<li>Once you have made your selection, choose the <strong>Optimize table<\/strong> option from the dropdown menu. The option is part of the <em>Table maintenance<\/em> section:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<figure><a class=\"et_pb_lightbox_image\" title=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-3.png\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-3.png\"> <img loading=\"lazy\" decoding=\"async\" class=\"aw-border-img wp-image-15434 size-full alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-3.png\" alt=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-3.png\" width=\"1046\" height=\"519\" \/><\/a><\/figure>\n<ol start=\"5\">\n<li style=\"list-style-type: none;\">\n<ol start=\"5\">\n<li style=\"list-style-type: none;\">\n<ol start=\"7\">\n<li style=\"list-style-type: none;\">\n<ol start=\"7\">\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Once you select the <em>Optimize table<\/em> command, it will be executed automatically and you should be presented with the <em>Your SQL query has been executed successfully.<\/em> message:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<figure><a class=\"et_pb_lightbox_image\" title=\"Success! The selected tables were optimized successfully.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-4.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-4.png\" alt=\"Success! The selected tables were optimized successfully.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">Success! The selected tables were optimized successfully.<\/figcaption><\/figure>\n<p>One thing to keep in mind is that the <em>Optimize table<\/em> option performs different actions depending on the storage engine that your tables are using. As such, the option\u2019s effects can vary from table to table. This is especially true if you are utilizing different storage engines and if some of your tables undergo regular edits while other tables remain relatively unchanged.<\/p>\n<p>&nbsp;<\/p>\n<h5>How Do I Compress the Data in a MySQL Database?<\/h5>\n<p>As we have previously noted, different storage engines come with different feature sets. One standout feature of the <em>InnoDB storage engine<\/em> is its ability to compress your data without any loss of information. The compression is most effective if your tables have columns that use the <code>TEXT<\/code>, <code>BLO<\/code>, <code>VARCHAR<\/code>, and <code>VARBINARY<\/code>data types.<\/p>\n<p>To run the compression on a given table, you first need to make sure that the table in question is using the <em>InnoDB storage engine<\/em>. You can find this information in phpMyAdmin\u2019s database structure view. This view is most easily accessed by clicking on your database name as is shown in the screenshot below:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"Clicking on your database name in phpMyAdmin takes you to the structure view for your database.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-5.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-5.png\" alt=\"Clicking on your database name in phpMyAdmin takes you to the structure view for your database.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">Clicking on your database name in phpMyAdmin takes you to the structure view for your database.<\/figcaption><\/figure>\n<p>Once you are in the structure view, you should see a list of all tables that are contained within your database. The column that shows your current storage engine is called <em>Type<\/em> and is highlighted below:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"phpMyAdmin uses the not-so-obvious column heading Type to denote the storage engine each table is using.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-6.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-6.png\" alt=\"phpMyAdmin uses the not-so-obvious column heading Type to denote the storage engine each table is using.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">phpMyAdmin uses the not-so-obvious column heading Type to denote the storage engine each table is using.<\/figcaption><\/figure>\n<p>If you see <em>InnoDB<\/em> listed as the storage engine on the tables that you wish to compress, then you are good to go. If you see any other value, however, you would need to convert your table(s) to use the InnoDB storage engine first. The conversion is done by executing a short SQL command. To get started, switch to the SQL tab in phpMyAdmin:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"The SQL tab in phpMyAdmin gives you the freedom to run any SQL commands that you need.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-7.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-7.png\" alt=\"The SQL tab in phpMyAdmin gives you the freedom to run any SQL commands that you need.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">The SQL tab in phpMyAdmin gives you the freedom to run any SQL commands that you need.<\/figcaption><\/figure>\n<p>Once there, paste the following code:<\/p>\n<pre><code>ALTER TABLE my_table ENGINE = InnoDB;\r\n<\/code><\/pre>\n<p>Be sure to replace <code>my_table<\/code> with the name of the table that you wish to convert. In our example, we are converting a table called <code>orders<\/code>, so our command would look like this:<\/p>\n<pre><code>ALTER TABLE orders ENGINE = InnoDB;\r\n<\/code><\/pre>\n<p>Once you have entered the command, click on the <em>Go<\/em> button in the lower-right corner to execute it. If successful, you should be presented with a success message as the one shown below:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"You may see a different success message depending on the contents of your table, but in general, it should look similar to this one.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-8.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-8.png\" alt=\"You may see a different success message depending on the contents of your table, but in general, it should look similar to this one.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">You may see a different success message depending on the contents of your table, but in general, it should look similar to this one.<\/figcaption><\/figure>\n<p>If you wish to convert multiple tables to the InnoDB storage engine, you would need to run the above command for each of them.<\/p>\n<p>Now that your tables are using InnoDB, you can proceed with the actual MySQL data compression. The compression itself is a short SQL command that also needs to be run from the SQL tab in phpMyAdmin. Here is the command:<\/p>\n<pre><code>ALTER TABLE my_table ROW_FORMAT=COMPRESSED;\r\n<\/code><\/pre>\n<p>Just like with the table conversion, you need to replace <code>my_table<\/code> with the actual name of your table. As an example, in the screenshot below we are compressing the table called <code>orders<\/code>:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"MySQL data compression may sound complicated, but it is, in fact, a simple SQL command that you need to run.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-9.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-9.png\" alt=\"MySQL data compression may sound complicated, but it is, in fact, a simple SQL command that you need to run.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">MySQL data compression may sound complicated, but it is, in fact, a simple SQL command that you need to run.<\/figcaption><\/figure>\n<p>Once you have entered the compression command, press the <em>Go<\/em> button to execute it. If you wish to compress multiple tables, you may do so by running the SQL command for each table.<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"If all goes well with the compression, phpMyAdmin should greet you with a success message similar to this one.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-10.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-10.png\" alt=\"If all goes well with the compression, phpMyAdmin should greet you with a success message similar to this one.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">If all goes well with the compression, phpMyAdmin should greet you with a success message similar to this one.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3>How Do I Delete Tables Using phpMyAdmin?<\/h3>\n<p>Your other alternative when it comes to freeing up storage space is to remove data that you no longer need from your database. You can either delete individual entries or entire tables.<\/p>\n<p>To delete a table, just go to the <em>Structure<\/em> tab for your database so you see all of your tables. From there, choose the <strong>Drop<\/strong> option next to the table you wish to delete and confirm your choice. Double-check that you have selected the correct table before you confirm the deletion as this action cannot be undone.<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"phpMyAdmin uses the term Drop to refer to the deletion of an entire table.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-11.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-11.png\" alt=\"phpMyAdmin uses the term Drop to refer to the deletion of an entire table.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">phpMyAdmin uses the term Drop to refer to the deletion of an entire table.<\/figcaption><\/figure>\n<p>If deleting an entire database table is not an option for you, then you can consider removing individual entries from different tables that you no longer need. This can be achieved by running various SQL commands. Below, we will showcase a very basic SQL command that can delete a single database entry.<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"A sample table with two entries (rows). We will be removing the second row.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-12.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-12.png\" alt=\"A sample table with two entries (rows). We will be removing the second row.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">A sample table with two entries (rows). We will be removing the second row.<\/figcaption><\/figure>\n<p>In this example, we will use the above table with two rows. The goal is to remove the second row while preserving the first.<\/p>\n<p>You will notice that all tables usually have an <em>id<\/em> column that contains a unique number that identifies the given entry. In our example, the <em>id<\/em> column is actually called <code>id<\/code>, but your tables may use a different word as the column\u2019s title. Once you locate the column that stores the unique identifiers for each entry, make a note of the value associated with the entry (row) that you wish to delete. With this information at hand, switch to the <strong>SQL tab<\/strong> and run the following SQL command:<\/p>\n<pre><code>DELETE FROM my_table where id_column = 'my_id';\r\n<\/code><\/pre>\n<p>In the above code you will need to make three replacements:<\/p>\n<ol start=\"5\">\n<li style=\"list-style-type: none;\">\n<ol start=\"5\">\n<li style=\"list-style-type: none;\">\n<ol start=\"7\">\n<li style=\"list-style-type: none;\">\n<ol start=\"7\">\n<li style=\"list-style-type: none;\">\n<ul>\n<li><code>my_table<\/code> should be replaced with the name of the table that you are deleting from.<\/li>\n<li><code>id_column<\/code> should be replaced with the name of the column that stores your unique identifiers.<\/li>\n<li><code>my_id<\/code> should be replaced with the actual identifier for the row that you wish to delete.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Our example uses the <code>products<\/code> table. This table has an <code>id<\/code> column and the unique identifier for the entry that we wish to delete is <code>2<\/code>. So our SQL command should look like this:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"A basic SQL command for deleting an entry with a specific identifier. With enough SQL knowledge you can create complex queries that delete data based on multiple criteria.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-13.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-13.png\" alt=\"A basic SQL command for deleting an entry with a specific identifier. With enough SQL knowledge you can create complex queries that delete data based on multiple criteria.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">A basic SQL command for deleting an entry with a specific identifier. With enough SQL knowledge, you can create complex queries that delete data based on multiple criteria.<\/figcaption><\/figure>\n<p>When we press the <strong>Go<\/strong> button, the SQL command gets executed and the deletion will be completed. Now our table no longer contains the second entry:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"Be extra careful when using the DELETE command! Above all else, make sure that you have successfully located the column that contains the unique identifiers for the table.\" href=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-14.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2020\/03\/reduce-mysql-database-size-14.png\" alt=\"Be extra careful when using the DELETE command! Above all else, make sure that you have successfully located the column that contains the unique identifiers for the table.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">Be extra careful when using the DELETE command! Above all else, make sure that you have successfully located the column that contains the unique identifiers for the table.<\/figcaption><\/figure>\n<p>If you are using a modern content management system like WordPress, Drupal, Joomla, or similar, you should consider using the CMS\u2019s backend administration tools for data management and removal. Manually deleting entries from the database should be your last resort.<\/p>\n<p>&nbsp;<\/p>\n<h2>Conclusion<\/h2>\n<p>As a website owner, it is always a good idea to keep an eye on your database usage. This is especially true if you are using a shared hosting plan and you have a cap on your database size. If you happen to reach your storage limit, your website can start displaying all manner of warnings and error messages, such as the perplexing <em><a href=\"\/kb\/insert-command-denied\/\">\u201cINSERT command denied to user\u201d<\/a><\/em> message.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Database software, such as MySQL, often employs various techniques to speed up the searching and delivery of any information that is requested. In most cases, these techniques take the form of temporary databases that are created to serve as intermediates and help you retrieve the requested data faster. The only downside to these additional databases [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":33819,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[36],"tags":[],"class_list":["post-45192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Can I Reduce the Size of a MySQL Database? | KB | AwardSpace<\/title>\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.awardspace.com\/kb\/reduce-mysql-database-size\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Can I Reduce the Size of a MySQL Database? | KB | AwardSpace\" \/>\n<meta property=\"og:description\" content=\"Database software, such as MySQL, often employs various techniques to speed up the searching and delivery of any information that is requested. In most cases, these techniques take the form of temporary databases that are created to serve as intermediates and help you retrieve the requested data faster. The only downside to these additional databases [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/\" \/>\n<meta property=\"og:site_name\" content=\"AwardSpace.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AwardSpace\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-21T20:23:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-16T05:19:23+00:00\" \/>\n<meta name=\"author\" content=\"iskrend\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@awspace\" \/>\n<meta name=\"twitter:site\" content=\"@awspace\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"iskrend\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/\"},\"author\":{\"name\":\"iskrend\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232\"},\"headline\":\"How Can I Reduce the Size of a MySQL Database?\",\"datePublished\":\"2020-03-21T20:23:09+00:00\",\"dateModified\":\"2023-09-16T05:19:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/\"},\"wordCount\":1887,\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Databases\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/\",\"url\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/\",\"name\":\"How Can I Reduce the Size of a MySQL Database? | KB | AwardSpace\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2020-03-21T20:23:09+00:00\",\"dateModified\":\"2023-09-16T05:19:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.awardspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\/\/www.awardspace.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Databases\",\"item\":\"https:\/\/www.awardspace.com\/kb\/databases\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How Can I Reduce the Size of a MySQL Database?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awardspace.com\/#website\",\"url\":\"https:\/\/www.awardspace.com\/\",\"name\":\"AwardSpace.com\",\"description\":\"Free Web Hosting with PHP, MySQL, Email Sending, No Ads\",\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awardspace.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.awardspace.com\/#organization\",\"name\":\"AwardSpace.com\",\"url\":\"https:\/\/www.awardspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"contentUrl\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"width\":1759,\"height\":176,\"caption\":\"AwardSpace.com\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/AwardSpace\/\",\"https:\/\/x.com\/awspace\",\"https:\/\/www.instagram.com\/awardspace\/\",\"https:\/\/www.quora.com\/profile\/Award-Space\",\"https:\/\/www.linkedin.com\/company\/19214384\/\",\"https:\/\/www.reddit.com\/user\/AwardSpace\",\"https:\/\/www.pinterest.com\/awardspace\/\",\"https:\/\/www.youtube.com\/user\/AwardspaceWebHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232\",\"name\":\"iskrend\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g\",\"caption\":\"iskrend\"},\"url\":\"https:\/\/www.awardspace.com\/author\/iskrend\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Can I Reduce the Size of a MySQL Database? | KB | AwardSpace","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.awardspace.com\/kb\/reduce-mysql-database-size\/","og_locale":"en_US","og_type":"article","og_title":"How Can I Reduce the Size of a MySQL Database? | KB | AwardSpace","og_description":"Database software, such as MySQL, often employs various techniques to speed up the searching and delivery of any information that is requested. In most cases, these techniques take the form of temporary databases that are created to serve as intermediates and help you retrieve the requested data faster. The only downside to these additional databases [&hellip;]","og_url":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/","og_site_name":"AwardSpace.com","article_publisher":"https:\/\/www.facebook.com\/AwardSpace\/","article_published_time":"2020-03-21T20:23:09+00:00","article_modified_time":"2023-09-16T05:19:23+00:00","author":"iskrend","twitter_card":"summary_large_image","twitter_creator":"@awspace","twitter_site":"@awspace","twitter_misc":{"Written by":"iskrend","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#article","isPartOf":{"@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/"},"author":{"name":"iskrend","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232"},"headline":"How Can I Reduce the Size of a MySQL Database?","datePublished":"2020-03-21T20:23:09+00:00","dateModified":"2023-09-16T05:19:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/"},"wordCount":1887,"publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"image":{"@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage"},"thumbnailUrl":"","articleSection":["Databases"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/","url":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/","name":"How Can I Reduce the Size of a MySQL Database? | KB | AwardSpace","isPartOf":{"@id":"https:\/\/www.awardspace.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage"},"image":{"@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage"},"thumbnailUrl":"","datePublished":"2020-03-21T20:23:09+00:00","dateModified":"2023-09-16T05:19:23+00:00","breadcrumb":{"@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.awardspace.com\/kb\/reduce-mysql-database-size\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.awardspace.com\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.awardspace.com\/kb\/"},{"@type":"ListItem","position":3,"name":"Databases","item":"https:\/\/www.awardspace.com\/kb\/databases\/"},{"@type":"ListItem","position":4,"name":"How Can I Reduce the Size of a MySQL Database?"}]},{"@type":"WebSite","@id":"https:\/\/www.awardspace.com\/#website","url":"https:\/\/www.awardspace.com\/","name":"AwardSpace.com","description":"Free Web Hosting with PHP, MySQL, Email Sending, No Ads","publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awardspace.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.awardspace.com\/#organization","name":"AwardSpace.com","url":"https:\/\/www.awardspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","contentUrl":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","width":1759,"height":176,"caption":"AwardSpace.com"},"image":{"@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AwardSpace\/","https:\/\/x.com\/awspace","https:\/\/www.instagram.com\/awardspace\/","https:\/\/www.quora.com\/profile\/Award-Space","https:\/\/www.linkedin.com\/company\/19214384\/","https:\/\/www.reddit.com\/user\/AwardSpace","https:\/\/www.pinterest.com\/awardspace\/","https:\/\/www.youtube.com\/user\/AwardspaceWebHosting"]},{"@type":"Person","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232","name":"iskrend","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g","caption":"iskrend"},"url":"https:\/\/www.awardspace.com\/author\/iskrend\/"}]}},"_links":{"self":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/45192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/comments?post=45192"}],"version-history":[{"count":0,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/45192\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/media?parent=45192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/categories?post=45192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/tags?post=45192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}