Title: Error Establishing DB Connection Monitor
Author: allgen
Published: <strong>3 Furar 2019</strong>
Last modified: 3 Furar 2019

---

Search plugins

![](https://ps.w.org/error-establishing-db-connection-monitor/assets/banner-772x250.
png?rev=2024283)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/error-establishing-db-connection-monitor/assets/icon.svg?rev
=2024283)

# Error Establishing DB Connection Monitor

 By [allgen](https://profiles.wordpress.org/allgen/)

[Download](https://downloads.wordpress.org/plugin/error-establishing-db-connection-monitor.zip)

 * [Details](https://kab.wordpress.org/plugins/error-establishing-db-connection-monitor/#description)
 * [Reviews](https://kab.wordpress.org/plugins/error-establishing-db-connection-monitor/#reviews)
 *  [Installation](https://kab.wordpress.org/plugins/error-establishing-db-connection-monitor/#installation)
 * [Development](https://kab.wordpress.org/plugins/error-establishing-db-connection-monitor/#developers)

 [Support](https://wordpress.org/support/plugin/error-establishing-db-connection-monitor/)

## Description

This plugin helps WordPress users automatically restarts the mysql service when 
it is stopped by any unexpected traffic, attack or lack of resources in linux environment.
There are lots of TODO for this plugin. After first release, the monitoring script
for mysql service will be improved. The linux cron will be automatically copied 
to the expected directory. This plugin is tested with apache2 server.
 Fix the Error
Establishing a Database Connection in WordPress

#### How to Use this Plugin Template

 1. Download this plugin.
 2. After Plugin Activation GOTO Settings > Error Establishing DB Connection Monitor
    Plugin.
 3. Select monitoring interval for your sites downtime(hourly, daily etc.)
 4. Follow the instructions in the plugin’s settings page.

#### Important Notes

 * This plugin includes examples of how we implement a plugin sidebar in our own
   plugins and exmple widgets like our own mail-chimp newsletter subscription, etc.
 * You will have to either know how to modify these for your own needs or remove
   them completely.
 * We cannot promise support for specific questions about what to modify in your
   scenario.
 * Icon made by Freepik from www.flaticon.com
    Enjoy!

#### Features

Example techniques included in this Plugin Template

 1. Generating monitoring script for mysql service
 2. After monitoring script starts the mysql service again TODO Emailing about downtime
    will be added.
 3. Using a class approach to building a plugin
 4. Minimal variable updates by re-using class level variables for things like the 
    plugin name and slug
 5. Using common WordPress hooks and filters
 6. Creating an admin menu item under the Settings menu

## Installation

 1. Log in to your WordPress site as an administrator
 2. Use the built-in Plugins tools to install from the repository or unzip and Upload
    the plugin directory to /wp-content/plugins/
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. The current output of the plugin template can be seen by going to Settings > Error
    Establishing DB Connection Monitor

## FAQ

  Is this plugin changes anything?

No, actually it only watches if your site is down with PHP crontab feature. Even
if the mysql is down, it simply restarts the service and saves your sites traffic.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Error Establishing DB Connection Monitor” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ allgen ](https://profiles.wordpress.org/allgen/)

[Translate “Error Establishing DB Connection Monitor” into your language.](https://translate.wordpress.org/projects/wp-plugins/error-establishing-db-connection-monitor)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/error-establishing-db-connection-monitor/),
check out the [SVN repository](https://plugins.svn.wordpress.org/error-establishing-db-connection-monitor/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/error-establishing-db-connection-monitor/)
by [RSS](https://plugins.trac.wordpress.org/log/error-establishing-db-connection-monitor/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First public release

## Meta

 *  Version **1.0.0**
 *  Last updated **8 n iseggasen ago**
 *  Active installations **10+**
 *  WordPress version ** 3.5 or higher **
 *  Tested up to **5.0.31**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/error-establishing-db-connection-monitor/)
 * Tags
 * [connection](https://kab.wordpress.org/plugins/tags/connection/)[database](https://kab.wordpress.org/plugins/tags/database/)
   [error](https://kab.wordpress.org/plugins/tags/error/)[service](https://kab.wordpress.org/plugins/tags/service/)
 *  [Advanced View](https://kab.wordpress.org/plugins/error-establishing-db-connection-monitor/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/error-establishing-db-connection-monitor/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/error-establishing-db-connection-monitor/reviews/)

## Contributors

 *   [ allgen ](https://profiles.wordpress.org/allgen/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/error-establishing-db-connection-monitor/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXT2536Z7SWSA&source=url)