WordPress.org

Ready to get started?Download WordPress

Forums

How to Hide mysql connect errors (3 posts)

  1. BlogTrafficExchange
    Member
    Posted 5 years ago #

    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?

  2. BlogTrafficExchange
    Member
    Posted 5 years ago #

    I tried wrapping the default index.php in the wordpress root with a try catch, but that doesnt work.

  3. sojweb
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.