I should be able to fix this by simply moving the use inside of the fork? That doesn't seem to work. I guess even if the use is inside of wakeup() it's still being compiled before forking? Seems I'm a bit confused on what's happening under the covers when forking. Time to do some reading, any suggestions?
or I can move the db connection call out of the "main" section of TEST.pm. That does work.
Cool, thanks for the help perrin.
In reply to Re: Re: Re: Re: DBD::mysql with a forked processes caused lost MySQL connection unless mysql_auto_reconnect is set?
by drewhead
in thread DBD::mysql with a forked processes caused lost MySQL connection unless mysql_auto_reconnect is set?
by drewhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |