|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I have some cgi scripts. They worked fine. However, when I switched my server to use mod_perl to handle the script, I got the following error from Apache's error log.
DBD::mysql::st execute failed: MySQL server has gone away at scripts_name.cgi line 562. But sometimes the script runs fine after a few reloads. Does anyone know what causes this error? My script, mod_perl, or MySQL? I am assuming it's my script's error, but I have no clue of what is wrong. Wondering if this is a common error when switching to mod_perl. Thanks Last edited by birdsky : March 25th, 2001 at 07:41 PM. |
|
#2
|
|||
|
|||
|
startup.pl
try to use Apache:
BI in your startup.pl ( or whatever you named it ) file. that way you can make a permantent connection to your database at the time of server startup, so your SQL server will not "go away" when child exits.more info on perl.apache.org and on cpan.org |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > cgi to mod_perl error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|