{"id":2018,"date":"2015-07-01T15:50:32","date_gmt":"2015-07-01T06:50:32","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2018"},"modified":"2015-09-18T17:17:48","modified_gmt":"2015-09-18T08:17:48","slug":"mysql-error-2006-hy000-at-line-xxxx-mysql-server-has-gone-away","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/07\/01\/mysql-error-2006-hy000-at-line-xxxx-mysql-server-has-gone-away\/","title":{"rendered":"MySQL ERROR 2006 (HY000) at line xxxx: MySQL server has gone away"},"content":{"rendered":"<p>\u5de8\u5927\u306a\u30a4\u30f3\u30dd\u30fc\u30c8\u30c7\u30fc\u30bf\u306e\u6642\u306b\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u3002\u3069\u3046\u3084\u3089\u30d0\u30c3\u30d5\u30a1\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3089\u3057\u3044\u3002<br \/>\nWeb\u3067\u8abf\u3079\u305f\u3068\u304a\u308a\/etc\/my.cnf\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3002<br \/>\n[mysqld]\u30bb\u30af\u30b7\u30e7\u30f3\u306bmax_allowed_packet\u306e\u5217\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<p>[shell]<br \/>\n[mysqld]<br \/>\ndatadir=\/var\/lib\/mysql<br \/>\nsocket=\/var\/lib\/mysql\/mysql.sock<br \/>\n# Disabling symbolic-links is recommended to prevent assorted security risks<br \/>\nsymbolic-links=0<br \/>\n# Settings user and group are ignored when systemd is used.<br \/>\n# If you need to run mysqld under a different user or group,<br \/>\n# customize your systemd unit file for mysqld according to the<br \/>\n# instructions in http:\/\/fedoraproject.org\/wiki\/Systemd<br \/>\n# \u3053\u3053\u3092\u8ffd\u52a0<br \/>\nmax_allowed_packet = 1280M<br \/>\n[\/shell]<\/p>\n<p>mysql\u3092\u518d\u8d77\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<p>[shell]<br \/>\nmysql> SHOW VARIABLES LIKE &#8216;max_allowed_packet&#8217;;<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+<br \/>\n| Variable_name      | Value      |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+<br \/>\n| max_allowed_packet | 1073741824 |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+<br \/>\n1 row in set (0.00 sec)<br \/>\n[\/shell]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5de8\u5927\u306a\u30a4\u30f3\u30dd\u30fc\u30c8\u30c7\u30fc\u30bf\u306e\u6642\u306b\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u3002\u3069\u3046\u3084\u3089\u30d0\u30c3\u30d5\u30a1\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3089\u3057\u3044 &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/07\/01\/mysql-error-2006-hy000-at-line-xxxx-mysql-server-has-gone-away\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,147],"tags":[423,366],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2018"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2018"}],"version-history":[{"count":2,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2018\/revisions"}],"predecessor-version":[{"id":2210,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2018\/revisions\/2210"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}