Server Maintenance

Clear cPanel Eximstats DB and Repairing the Eximstats DB

Updated January 2026 8,678 views 1 min read
Server Maintenance | Updated January 2026

The Eximstats database in cPanel tracks email delivery statistics. Over time it can grow large and consume significant disk space or cause slow cPanel performance. Here is how to clear and repair it.

Server Admin Only

Requires root SSH access

Shared hosting customers do not need to manage this database. If cPanel is loading slowly on your account, open a support ticket and we will check if Eximstats is the cause.

01. Clear the Eximstats Database

# Via cPanel script (recommended)
/usr/local/cpanel/bin/eximstats_db.pl --purge

# Or manually truncate tables
mysql eximstats -e "TRUNCATE sends; TRUNCATE smtp; TRUNCATE failures; TRUNCATE defers;"

02. Repair if Corrupted

# Drop and rebuild
/usr/local/cpanel/bin/eximstats_db.pl --repair

# If that fails, full rebuild
mysql -e "DROP DATABASE eximstats;"
/usr/local/cpanel/bin/eximstats_db.pl --setup
Prevent Bloat

Set up a cron job to purge Eximstats regularly: add 0 2 * * 0 /usr/local/cpanel/bin/eximstats_db.pl --purge >/dev/null 2>&1 to root's crontab to clear it weekly on Sunday at 2 AM.

Shared Hosting Customer?

If cPanel is slow for your account, open a ticket and we will investigate.

Open a Support Ticket

Quick Recap

  1. Purge with cPanel script: eximstats_db.pl --purge
  2. Repair with: eximstats_db.pl --repair
  3. Set up weekly purge via root crontab
  4. Large Eximstats DB can slow cPanel email stats pages
  5. Shared hosting users: Contact support if cPanel is slow

Server administration · Last updated March 2026 · Browse all Server Maintenance articles

Share: X in Reddit f Email
  • 150 Users Found This Useful

Was this answer helpful?

Related Articles

E Sysup: Needed system RPMs were not installed: yum-utils

Server Maintenance | Updated January 2026 The error E Sysup: Needed system RPMs were not...

error: db3 error(-) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

Server Maintenance | Updated January 2026 The error db3 error(-30974) from dbenv->failchk:...

Repairing and Optimizing all MySQL and MariaDB Databases on the Server

Server Maintenance | Updated January 2026 Regularly repairing and optimizing MySQL/MariaDB...

How to convert InnoDB to MyISAM

Server Maintenance | Updated January 2026 Converting tables between InnoDB and MyISAM storage...

Killing cPanel Backups via Command Line / Shell

Server Maintenance | Updated January 2026 When a cPanel backup process hangs or runs too...



Save 30% on web hosting - Use coupon code Hosting30