{"id":558,"date":"2012-12-03T10:35:58","date_gmt":"2012-12-03T10:35:58","guid":{"rendered":"http:\/\/www.milesweb.com\/hosting-faqs\/?p=558"},"modified":"2023-02-11T16:08:16","modified_gmt":"2023-02-11T10:38:16","slug":"got-a-packet-bigger-than-max-allowed-packet-bytes","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/","title":{"rendered":"Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes"},"content":{"rendered":"<p>A communication packet is a single SQL statement sent to the MySQL server. The largest packet that can be be sent to Mysql server is 1GB. When the mysql server receives a packet bigger than the max allowed one it shows an error as below.<\/p>\n<p><strong>MySQL said: Documentation<br>#1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes<\/strong>&nbsp;<\/p>\n<p>At times you might loose connectivity with mysql server if the packet is too large. Both client &amp; server has a threshold of max packet size, so if you want to handle big packets, you must increase the variable limits on the server.<\/p>\n<p>Open the file below on your server. You cannot increase the limits on <a href=\"https:\/\/www.milesweb.in\/hosting\/shared-hosting\">shared hosting<\/a> OR <a title=\"reseller hosting india\" href=\"https:\/\/www.milesweb.in\/hosting\/reseller-hosting\/\" target=\"_blank\" rel=\"noopener\">reseller hosting<\/a> plans.<\/p>\n<p><strong># vi \/etc\/my.cnf<\/strong><\/p>\n<p>You can increase the limit as per your requirement. Now we will set it to 16MB. Below is what you need to add in the mysql config file.<\/p>\n<p><strong>max_allowed_packet=16M<\/strong><\/p>\n<p>Save the file &amp; exit. Restart mysql.<\/p>\n<p>You can check the increased limit with command.<\/p>\n<p><strong># mysqladmin variables | grep max_allowed_packet<\/strong><\/p>\n<p>You can configure custom mysql variables as required with our <a title=\"VPS hosting\" href=\"https:\/\/www.milesweb.in\/hosting\/vps-hosting\/\" target=\"_blank\" rel=\"noopener\"><strong>VPS hosting<\/strong><\/a> &amp; <a title=\"dedicated servers\" href=\"https:\/\/www.milesweb.in\/hosting\/dedicated-servers\/\" target=\"_blank\" rel=\"noopener\"><strong>dedicated server<\/strong><\/a> plans.<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A communication packet is a single SQL statement sent to the MySQL server. The largest packet that can be be sent to Mysql server is 1GB. When the mysql server receives a packet bigger than the max allowed one it shows an error as below. MySQL said: Documentation#1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-558","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-web-hosting-faq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Got a packet bigger than &#039;max_allowed_packet&#039; bytes<\/title>\n<meta name=\"description\" content=\"The MySQL server receives a communication packet as a single SQL statement. Here is you can get a bigger packet than it.\" \/>\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.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Got a packet bigger than &#039;max_allowed_packet&#039; bytes\" \/>\n<meta property=\"og:description\" content=\"The MySQL server receives a communication packet as a single SQL statement. Here is you can get a bigger packet than it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-03T10:35:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-11T10:38:16+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"headline\":\"Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes\",\"datePublished\":\"2012-12-03T10:35:58+00:00\",\"dateModified\":\"2023-02-11T10:38:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\"},\"wordCount\":203,\"commentCount\":0,\"articleSection\":[\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\",\"name\":\"Got a packet bigger than 'max_allowed_packet' bytes\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2012-12-03T10:35:58+00:00\",\"dateModified\":\"2023-02-11T10:38:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"description\":\"The MySQL server receives a communication packet as a single SQL statement. Here is you can get a bigger packet than it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png\",\"caption\":\"Admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Got a packet bigger than 'max_allowed_packet' bytes","description":"The MySQL server receives a communication packet as a single SQL statement. Here is you can get a bigger packet than it.","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.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/","og_locale":"en_US","og_type":"article","og_title":"Got a packet bigger than 'max_allowed_packet' bytes","og_description":"The MySQL server receives a communication packet as a single SQL statement. Here is you can get a bigger packet than it.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2012-12-03T10:35:58+00:00","article_modified_time":"2023-02-11T10:38:16+00:00","author":"Admin","twitter_misc":{"Written by":"Admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/"},"author":{"name":"Admin","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"headline":"Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes","datePublished":"2012-12-03T10:35:58+00:00","dateModified":"2023-02-11T10:38:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/"},"wordCount":203,"commentCount":0,"articleSection":["Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/","name":"Got a packet bigger than 'max_allowed_packet' bytes","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2012-12-03T10:35:58+00:00","dateModified":"2023-02-11T10:38:16+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"description":"The MySQL server receives a communication packet as a single SQL statement. Here is you can get a bigger packet than it.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/got-a-packet-bigger-than-max-allowed-packet-bytes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","caption":"Admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":9,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":17421,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/558\/revisions\/17421"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}