sgreiner Posted December 19, 2004 Posted December 19, 2004 The database has gone down a couple of times in the past. When it does, I get the same error message: Warning: mysql_connect(): Too many connections in /home/user_name/public_html/includes/functions/database.php on line 19 Unable to connect to database server! Has anyone got any ideas on a way to display a static "this site is down" page instead of this error message? I would rather not show that error message if this were to happen again. Are there any other commom error messages that I may want to work into this same process? "There is no doubt about precisely when folks began racing each other in automobiles. It was the day they built the second automobile." - Richard Petty
boxtel Posted December 19, 2004 Posted December 19, 2004 The database has gone down a couple of times in the past. When it does, I get the same error message: Warning: mysql_connect(): Too many connections in /home/user_name/public_html/includes/functions/database.php on line 19 Unable to connect to database server! Has anyone got any ideas on a way to display a static "this site is down" page instead of this error message? I would rather not show that error message if this were to happen again. Are there any other commom error messages that I may want to work into this same process? <{POST_SNAPBACK}> first I would set permanent mysql connections to no or increase the maximum connections. second tell php to write warnings and errors to the errorlog and not to the screen. Treasurer MFC
ozcsys Posted December 19, 2004 Posted December 19, 2004 If this is happening enough that you are worrying about how to display this to your customers then you need to rethink your hosting arrangments. Whether your customers see the error or some other page you are still talking about lost sales. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.