Solving “MySQL server has gone away” errors
问题 I have written some code in PHP that returns the html content from .edu domains. A brief introduction is given here: Errors regarding Web Crawler in PHP The crawler works fine when the number of links to crawl are small (something around 40 URLS) but I am getting "MySQL server has gone away" error after this number. I am storing html content as longtext in MySQL tables and I am not getting why the error arrives after at least 40-50 insertions. Any help in this regard is highly appreciated.