Error: DBD::mysql::db failed: Table ‘./eximstats/failures’ – Fix

If you found this post helpful, kindly share it and show your support :)

If you have received the following database error in your WHM control panel, you can follow below steps to resolve the error.

Error from delivery reporter: DBD::mysql::db selectall_arrayref failed: Table './eximstats/failures' is marked as crashed and last (automatic?) repair failed

Note :- Do ensure that you have the backup of all the necessary databases

Try to run below command

mysqlcheck --repair eximstats

If you get below error as an output, the ‘failures’ table within eximstats is corrupted

eximstats.defers OK eximstats.failures error : Can't create new tempfile: './eximstats/failures.TMD' status : Operation failed

It’s unable to be repaired. So, you will run below commands from MySQL prompt to recreate it.

mysql use eximstats;
drop table failures;

and run

/usr/local/cpanel/bin/updateeximstats


If you want to clear the other databases out, you can run below commands from MySQL prompt after the above steps.

Note :- The process will wipe out existing eximstats if you plan on using it for Mail Reports so keep that in mind

mysql use eximstats;
TRUNCATE TABLE sends;
TRUNCATE TABLE defers;
TRUNCATE TABLE smtp;

That’s it 🙂

Please check the issue and let me know the result 🙂

Loading

Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website Errorlogz.com, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

3 Responses

  1. Shashank says:

    Great,
    You can also use the below method to fix such issue within a second. There is no need of doing all those things:

    https://beanexpert.online/archives/182

Leave a Reply

Your email address will not be published. Required fields are marked *