I use WWW::Mechanize library to get the content of URLs and save their data into mysql tables. But when the page\'s content is too large, it gives this error message:
Are you using the latest DBI and DBD::mysql? It should have mysql_auto_reconnect enabled.
If you're using mysql under forks, you may need to set
$dbh->{InactiveDestroy} = 1;