Our production environment got a problem and the mysql service was down. The all our drupal based sites show the error messages below which expose to many information.
PDOException: SQLSTATE[HY000]  Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in lock_may_be_available() (line 164 of /home/workspace/drupal7/includes/lock.inc).
I find this page (via) about how to disable drupal errors, but have no effect when mysql is down.
Any one can give me a hand?