Support » Fixing WordPress » How to Hide mysql connect errors

  • I am running in the amazon cloud.

    I have my app and database on same server for wordpress install.

    The database is on an ebs drive.

    While your instance is starting it is possible to see mysql connect errors.

    How do I mask those errors with some sort of be right back message?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried wrapping the default index.php in the wordpress root with a try catch, but that doesnt work.

    You could put in a custom message for database connection errors in wp-db.php (check around line 323 for WP2.7.1). Or, you could do a quick manual test in index.php before WP loads, and die or redirect if connection fails.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Hide mysql connect errors’ is closed to new replies.