According to various websites on this issue where I was researching this information there is a way to create a custom html/php page to output when a database error occures.  This was implemented in version 2.3.2 of WordPress.

One is: http://yoast.com/custom-wordpress-database-error-pages/

What does this mean for ComicPress users?  Well it means several things by reading that particular post.   It means that when you are Digg’d or any other thing that might have consequences on your website and your site goes down; you’re stuck not knowing it’s down until someone notifies you or you happen to look.   Which means your missing out on a huge majority of possible readers.

This article mentions that it’s not sending out the proper header identification of a 500 error in the normal error code, however since this article was released the code change was made in current releases of WordPress to properly send that 500 error out.

The actual function in the core WordPress is in the wp-includes/functions.php file in the function  dead_db()

As everyone says though, its very unwise to make edits to core files so modifying or creating a db-error.php file and placing it into the /wp-content/ directory is a very valid solution.   It will let you create a custom page in the look and feel that your normal site has. (without using any normal wp calls), straight html.

I’ve made a mock up using directions based on the article above and placed it in this file for you to download, rename to .php, edit it and place it into your /wp-content/ directory.

<br />
&amp;lt;?php<br />
// Custom DB-Error.PHP by Joost De Valk (Additions by Philip M. Hofer(Frumph))<br />
// Credits: Joost de Valk  - http://yoast.com/custom-wordpress-database-error-pages/<br />
// If it's a 500 error, send the header for a 500 error.<br />
// this only works if your email server doesn't require authentication to send mail.<br />
// If you have SMTP authentication there is a workaround but requires some modifications if someone wants to<br />
// work on code to do it.<br />
// info here: http://email.about.com/od/emailprogrammingtips/qt/et073006.htm using Pear<br />
header(&amp;quot;HTTP/1.0 500 Internal Server Error&amp;quot;);</p>
<p>/*<br />
*	Uncomment this area to allow emails sent to you when this happens ^^ read above<br />
*	replace my name with yours, my email with your email<br />
*/<br />
/* Remove this line if you want to be mailed.<br />
 $mailto 	= &amp;quot;Your Name&amp;quot;;<br />
 $mailfrom 	= &amp;quot;youremail@yourdomain.com&amp;quot;;</p>
<p> if ($_SERVER['REQUEST_URI'] != &amp;quot;/wp-content/db-error.php&amp;quot;) {<br />
	$headers 	= &amp;quot;From: &amp;quot;.$mailfrom.&amp;quot;rn&amp;quot;.<br />
		&amp;quot;Reply-To: Your Namern&amp;quot;.<br />
		&amp;quot;X-Mailer: PHP/&amp;quot;.phpversion().&amp;quot;rn&amp;quot;.<br />
		&amp;quot;X-Priority: 1 (High)&amp;quot;;<br />
	$message	= &amp;quot;Go fix it!nn&amp;quot;.<br />
		&amp;quot;It broke when someone tried to open this page:<br />
			http://&amp;quot;.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'].&amp;quot;nn&amp;quot;.<br />
		&amp;quot;Best,n&amp;quot;.<br />
		&amp;quot;Your WordPress installation&amp;quot;;<br />
	$subject	= &amp;quot;DB error at &amp;quot;.$_SERVER['SERVER_NAME'];<br />
	mail($mailto,$subject,$message,$headers);<br />
}<br />
Remove this line if you want to be mailed. */</p>
<p>// EDIT HOW YOU WANT IT TO BE VISUALLY SEEN BELOW<br />
?&amp;gt;<br />
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;<br />
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;<br />
&amp;lt;head&amp;gt;<br />
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;<br />
	&amp;lt;title&amp;gt;Yet Another Database Error!&amp;lt;/title&amp;gt;</p>
<p>&amp;lt;/head&amp;gt;<br />
&amp;lt;body&amp;gt;<br />
	&amp;lt;center&amp;gt;<br />
	&amp;lt;h1&amp;gt;Error establishing a database connection&amp;lt;/h1&amp;gt;<br />
	&amp;lt;/center&amp;gt;<br />
&amp;lt;/body&amp;gt;<br />
&amp;lt;/html&amp;gt;<br />

– Phil