A "Too many connections" error means your website's database has reached the maximum number of connections it's allowed to handle at once, so new requests to load your site are being turned away until existing connections close. It often clears on its own within a few minutes, but if it keeps happening, something on your site is holding connections open longer than it should.
What Causes This Error
- A sudden spike in visitors or bots hitting your website at the same time.
- A plugin, theme, or custom script that opens a database connection but doesn't close it properly.
- A backup or cron job running a heavy database task at the same time as normal site traffic.
- Your hosting plan's connection limit being lower than what your website currently needs.
How to Check What's Using Your Connections
This process is the same whether you're on cPanel or DirectAdmin, since phpMyAdmin looks and works the same on both control panels.
- Log in to your control panel and open phpMyAdmin.
- Select your database, then click the Status tab. On newer versions of phpMyAdmin this may be listed under More.
- Look for Processes or Show processes to see a live list of open connections, along with how long each one has been running.
- Connections sitting idle in a "Sleep" state for a long time are usually the source of the problem.
Don't end processes you don't recognize. Some may be legitimate background tasks, and closing the wrong one can interrupt something your site depends on. If you're unsure what a process is doing, contact support before ending it.
How to Fix It
- Update outdated plugins, themes, or custom scripts. Connection leaks are a common bug that gets patched in newer releases.
- Avoid scheduling backups, cron jobs, and other heavy database tasks during your website's peak traffic hours.
- If you're running custom code, make sure it closes each database connection after use instead of leaving it open.
- If the error keeps recurring even under normal traffic, your hosting plan's connection limit may simply be too low for your website's current needs. Contact ZIPROF support to have your account reviewed.
For more on working with your database day to day, see our guide on how to import and export a MySQL database using phpMyAdmin.