‘mysql server gone away’<\/a> issue of mysql server. i hope it helped you guys to deal with this common issue as much as it did to me.<\/p>\nRecently, i fell into another mysql server gone away trap, i tried to fix it knowledge from the above article. It didn’t help \ud83d\ude41 . so i decided to debug it and found the solution finally.<\/p>\n
The solution is really simple:\u00a0Don’t use socket connection or localhost to connect to mysql server in your apps<\/strong>. this fix will work when you have a lot of virtual hosts on your server. mysql won’t be able to handle so many socket requests at once, but if you connect to your local host server ip, it will receive query requests and handle internally with socket.<\/p>\nI hope this will help :). please leave comments if you still experience ‘mysql server gone away’ after trying my 2 articles (this and on on the link above)<\/p>\n","protected":false},"excerpt":{"rendered":"
A long time ago, i wrote an article to show you how to deal with ‘mysql server gone away’ issue of mysql server. i hope it helped you guys to deal with this common issue as much as it did to me. Recently, i fell into another mysql server gone away trap, i tried to…<\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":1485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[],"aioseo_notices":[],"views":10,"_links":{"self":[{"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/posts\/865"}],"collection":[{"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/comments?post=865"}],"version-history":[{"count":1,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/posts\/865\/revisions"}],"predecessor-version":[{"id":1313,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/posts\/865\/revisions\/1313"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/media\/1485"}],"wp:attachment":[{"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/media?parent=865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/categories?post=865"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ndthanh.com\/wp-json\/wp\/v2\/tags?post=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}