You can actually use Pingdom to check for this kind of error, rather than a straight forward check for a response from the server you can configure the check to look for a particular string on the page. For instance, if your page has some kind of consistent bit of text on the homepage then you can look for that.
This Pingdom post has some info about checking for strings:
Make the most of your HTTP check: best practice for optional settings
You can also check that it doesn’t have particular string, so you should be able to make it flag it as down if it shows the text “Error establishing a database connection”.
Related Posts:
- Multiple developers / editors working on a site in progress
- Count & Display Database Queries
- Split WP install between 2 databases?
- How to get site URL if database is disconnected?
- Where are WP_Errors Saved
- How to move the WordPress site Layout from test site to Production site?
- Error message on blog posts only on my local environment [closed]
- Why does changing Database Table Prefixes result in loss of content?
- How can I find the cause of a 500 server error?
- How to get the full stack trace for WordPress “table doesn’t exist” error in debug.log?
- Having all “non-PHP” files on a different server
- Hang Up Followed By Can’t select database
- Restoring .sql backup results in “Error establishing a database connection”
- Server database problem
- Many images in wp-content/uploads folder that are not in Media Library
- What is this JavaScript “require”?
- Using wpdb to connect to a separate database
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- get_results using wpdb
- How can I make a WordPress database portable and url independent?
- wpdb->insert multiple record at once
- How to migrate a HTTPS WordPress installation to localhost?
- How to stop WordPress using utf8mb4_unicode_520_ci collation?
- WordPress database error: [Query was empty] [closed]
- Login in WordPress using external database data
- Shared Members between two different wordpress installations with different databases
- What is the fastest way to generate a unique id number when registering a user
- Efficiency on displaying random authors based on large database
- How to write Hebrew characters?
- Error establishing a database connection – with Debug Data
- Finding the login page from database?
- How to execute mulitple statement SQL queries using $wpdb->query?
- When and why should I use $wpdb different return types?
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- WordPress database growing dramatically in size despite adding no new content
- Delete all post meta except featured image Using SQL
- WordPress doesn’t show all posts in database
- Adding new row to wp_post table
- Extracting the post_id via the wp_insert_post action (external db query)
- How to interact with another wordpress install on same database?
- What is the proper way to validate and sanitize JSON response from REST API?
- How do I get the posts within a certain year/date(with sql query)?
- batch UPDATE autoload value in wp_options table
- Saving into post_excerpt or post_content
- Maintain user profile data in a non-WordPress database
- How to fix the disappearance of the “\” character when updating a post in the database
- Data storage for JS app using WP REST API
- Setup 3 Sites To Connect To 1 Database and Share Data
- How can I push local database changes to production, without impacting recent posts/pages that were published on production server?
- Setup private content for specific users with daily updates [closed]
- Does auto_load to ‘no’ in wp_options improve performance
- Connection refused on locahost after importing database?
- creating new field on mysql
- Does WordPress store the username as a primary key in the database?
- $wpdb->query can’t insert data
- WSOD 3.9.1 – Tried Everything so far
- Database Update Required – Update from command-line
- Can you refresh ONLY the wordpress adminbar and not the whole page?
- Sending posts from Python to WordPress
- Problem migrating to localhost
- SQL query to set posts in bulk based on the post content
- Automate WordPress website setup with prefilled data
- How can I detect right db type?
- Add search bar to Custom Database Table in WordPress Dashboard
- Custom search query by category id
- Design problems when exporting remote database for local development
- How do you render posts from outside wordpress?
- A change in URL slug in database returns 404, how can I do auto-redirect?
- Second ezSQL initialization for MSSQL
- Fetch a single row from a custom table for to a given ID
- Database create or redirect
- Database structure cheatsheet
- White Screen in Home Page
- Continuous SQL query errors from outside source
- How to escape percentage sign(%) in sql query with $wpdb->prepare?
- Migrate Users From laravel to wordpress
- WordPress has been updated! Before we send you on your way, we have to update your database to the newest version
- how add more field to wp user and save it to database
- How do I cleanup my database with data that is no longer being used?
- Malware in old website – how to migrate?
- A WP dev site that displays content from a live site’s database but cannot write to wp_posts?
- error establishing database connection (WAMP + filezilla)
- Is there a way for two deferent themes to consume two different DB on a same WP instance?
- How do I update a WordPress wp_postmeta meta_value that contains many options
- How to display $wpdb->insert_id; value on redirected page
- Should I Use only wpdb Class to Write Custom Queries?
- Auto populate form fields based on serial input or pull listings from other websites?
- How to extract some part of WordPress full source code
- Error establishing a database connection for some files
- Hash user emails in database?
- Sending WordPress database information to cross domain the safe way?
- Database Name Change
- Weird characters in title if it contain “ ”
- Where To Find bb_profile_data(); In bbPress?
- DB access blocked when initializing WP externally
- Saving data to database and exporting to excel
- Site does not work right, pages not showing up, even for root admin
- One information repeated on multiple locations on one site [closed]
- Showing Error(TAble already exist)
- WP Multisite Users Not Linking