How to create database error page in drupal 6 and 7

Here create database error page while database connection lost some point of time...it would so database error page

For drupal 7

step1:First goto  /sites/all/theme
step2:Go you selected theme and copy the "maintenance-page.tpl.php" to "maintenance-page--offline.tpl.php".
step3:Go to /sites/default/setting.php and search "$conf['maintenance_theme'] "
    eg:$conf['maintenance_theme'] ="you theme name"
step4:After that customized your "maintenance-page--offline.tpl.php" for database error page as you want.

For drupal 6

step1:First goto  /sites/all/theme
step2:Go you selected theme and copy the "maintenance-page.tpl.php" to "maintenance-page-offline.tpl.php".
step3:Go to /sites/default/setting.php and search "$conf['maintenance_theme'] "
    eg:$conf['maintenance_theme'] ="you theme name"
step4:After that customized your "maintenance-page--offline.tpl.php" for database error page as you want.
Comments