Hi there,
Liz has already replied to your question, I would like to add some info, hope this may help.
You write, that:

it...causes the error if there's no activity for 8 hours.
perl.apache.org describes the so called morning bug suggesting setting the wait_timeout mysqld system variable during the mysqld start to a higher value.
I know, you said, you can't make any changes to mySQL (MySQL?), but the same document also sends to the Apache::DBI documentation. I am not getting into details, because there is no point in retypeing what has been written in there, but what applies to your problem:
It describes:
  1. The ping() method and its example.
  2. The way to configure the usage of the ping method (Apache::DBI->setPingTimeOut($data_source, $timeout)).
Practical mod_perl book says, that this issue applies to old versions of DBI/DBD. As you don't provide any information abut versions the server is using, I can't suggest upgrading.
Also on PM site dug in 306648 thread and pope in 185416 node write about the "morning bug".

-sheep


In reply to Re: MySQL server has gone away by sheep
in thread MySQL server has gone away by Massyn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.