I have a perl script that uses DBI and DBD::MySQL. There is a query that is causing an error: lost connection to database during query. If I run the same query from the mysql prompt, it is fine and takes just over 30 seconds. Because it runs fine like that, I am assuming it's not a mysql server error, but something to do with a timeout for the $sth. I have tried setting net_read_timeout and net_write_timeout in the ini file, but to no avail. Also, the max_allowed_packet is 16M. Is there anyway to set the timeout for a query in the connect() function?
Thanks in advance.
RC