A simple solution to error establishing a database connection problem in Wordpress environment. This is solving stopping problem of mysql in linux env …
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org
Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →
WP PlugIndex currently records Error Establishing DB Connection Monitor version 1.0.0 as active, updated 7y ago and tested up to WordPress 5.0.
Overview
About this plugin
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
Download this plugin.
After Plugin Activation GOTO Settings > Error Establishing DB Connection Monitor Plugin.
Select monitoring interval for your sites downtime(hourly, daily etc.)
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
Generating monitoring script for mysql service
After monitoring script starts the mysql service again TODO Emailing about downtime will be added.
Using a class approach to building a plugin
Minimal variable updates by re-using class level variables for things like the plugin name and slug
Using common WordPress hooks and filters
Creating an admin menu item under the Settings menu
WordPress.org metadata
Plugin tags
Topics listed for this plugin in the WordPress.org directory.
connection
database
error
establishing
service
Compatibility & maintenance
Compatibility & maintenance
Tested up to WordPress 5.0
Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 5.0.
Current WordPress releaseWordPress 7.1
WordPress.org Tested up to5.0
Minimum requirementsWordPress 3.5 · PHP 5.6
Update activity3 Feb 20197y ago
“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.
Changes recorded by WP PlugIndex
Recent tracked changes
No tracked version or compatibility changes have been recorded by WP PlugIndex yet.
Tracking & source
WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.