I have encountered the same kind of issue before, as you have already noted down the problem boiled down to mysql not accepting too many connections, The solution we implemented was to apply proper caching (check how often the cache is invalidated and other caching settings) and upgrade the mysql server.
As a quick fix, you could flush the connections on mysql using
flush hosts;
Related Posts:
- What causes the “max_user_connections” warning on WordPress frontend?
- Error establishing a database connection – with Debug Data
- SQL Error wp_commentmeta – incorrect table definition
- Trouble Migrating all data blog from WordPress.com to WordPress.org
- How to fix database error duplicate entry
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- Hang Up Followed By Can’t select database
- Print output of Table Creation
- Rename a table in MySQL
- How should I tackle –secure-file-priv in MySQL?
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- phpMyAdmin – Error > Incorrect format parameter?
- Why is my database import losing text widget data?
- Checking if Database Table exists
- Please explain how WordPress works with MySQL character set and collation at a low level
- Get error messages when $wpdb->insert() returns false?
- How to fetch Data in WordPress using MySQLi or $wpdb
- Connect to database using wordpress wp-config file
- Reset Post IDs to less than 64bit integer
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- How to define composite keys with dbDelta()
- Is it possible to define two databases for one installation?
- Does WordPress use the InnoDB engine for MySQL by default?
- $wpdb->prepare() warning in WordPress 3.5
- Changing the Database Connection Error Message
- Huge wp_options table
- “MySQL server has gone away” since update to 3.8
- $wpdb variable throw this error Call to a member function get_results() on a non-object in
- Can I transfer a mysql database to another site?
- WordPress and automated MySQL backups to a different host
- MySQL Syntax Error upon restoring database from backup [closed]
- Help running a MySQL query to update all wp_#_options tables in a Multisite install
- Size article thumbnails and retrieve them directly from database
- WordPress site uses MyISAM, should I switch to InnoDB necessary?
- Is it safe to convert tables from MyISAM to InnoDB?
- Emojis getting converted to “?”
- How do I properly update the WordPress database password?
- wpdb_prepare with multiple or condition
- WordPress Install and Database on separate hosting?
- Error: SELECT SQL_CALC_FOUND_ROWS
- Error establishing a database connection on Installation
- Moving WP from local server to live, error establishing a db connection
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- Where are WP_Errors Saved
- WordPress database import: Row size too large
- Advanced SELECT query with condtional statements
- Improve performance by removing unnecessary database queries
- Redirecting to old domain after migration website
- Switching Databases in LocalHost
- Create table from array with prepare
- Unable to set a default serialized array using dbdelta()
- How to prevent/delay MySQL connections when an object cache is used?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- “Error establishing a database connection” – Intermittent error on GoDaddy
- Error establishing a database connection,
- Can’t update WordFence Options, clear data manually
- Changing between Local Host DB to Production DB and in reverse
- Problem in using wpdb
- How can I restrict php mail() to only send me one email after a db error
- How and where is wordpress adding mySQL content to database?
- Why does changing Database Table Prefixes result in loss of content?
- Query Column of Specific ID from Database Table
- How to create more than one new wpdb object?
- SELECT SQL_CALC_FOUND_ROWS with wordpress search
- How to connect and insert data in database of wordpress?
- Buddypress avatar image in database [closed]
- What might be the reason of Couldn’t fetch mysqli_result on another domain?
- $wpdb->get_var – What value is returned when zero records are found?
- Remote database -> massive response time increase?
- Installing local to live WP into subdirectory
- Getting “Error Establishing a Database Connection” on localhost in new Mac OSX Lion environment
- Cloning blog to localhost via WAMP
- Only allow user to access a link once a year, based on their joining date
- Error establishing a database connection in wordpress site , website not opening
- Counting post and changing roles in mysql database. Query not code
- MSQL database wp_postmeta has meta key tve_revision
- How to edit custom table data in frontend
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- local wordpress broke after changing URL
- “BS_” rows in postmeta table
- How can I find user role in Mysql?
- Exporting Post ID, Post Title, Primary Category and Primary Category ID
- WordPress Database Query works in phpMyAdmin but not in the code
- How to create index (sql) to a meta_key?
- WPCLI search and replace in a particlar site dir effect another site-dir
- mySQL database size large, but tables size less
- After renaming MySQL database, I can no longer access my Blog page
- How To connect to the same WordPress database with different database user
- Database error after importing WordPress
- Create a new table on the database and save parameters from a contact form
- What am I doing wrong here? WordPress database error
- Why is converting my database to UTF-8 truncating entries?
- I broke database after reuploading local version – what exactly happened? Database error
- How to back-up a database on IIS
- export individual posts to text files or a single csv file
- Error at time of WordPress Installation
- why you don’t Implement PDO for access every thing to database
- How to find fresh (last modified) and sql backup?
- Uploading to WordPress Database