EllisLab text mark
Advanced Search
     
Database Error Crashed Site
Posted: 05 July 2012 04:21 AM   [ Ignore ]
Avatar
Joined: 2010-07-06
143 posts

Hi,

A client website of ours has crashed and shows the following error message:


A Database Error Occurred

Error Number: 145

Table ‘./dhc_db/exp_online_users’ is marked as crashed and should be repaired

SELECT * FROM (`exp_online_users`) WHERE `site_id` = ‘1’ AND `date` > 1341475211 ORDER BY `name`

Filename: libraries/Stats.php

Line Number: 79

We are also running the Store module.

Any ideas on how to rectify the error at all?

 Signature 

Scott Harrington

 
Posted: 05 July 2012 04:16 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey Scott,

I would try repairing the table. (BACK UP FIRST)

In the Control Panel go to Tools ‣ Data ‣ SQL Manager ‣ Manage Database Tables and then select that table and hit repair.

That should do it.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 05 July 2012 04:23 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2008-09-12
43 posts

Ah thanks man, that did the trick - any idea what caused it, happened to two of our sites today?

Thanks again

 
Posted: 05 July 2012 04:26 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hiya Scott,

Cause .... that’s a good question. Maybe a ton of visitors recently? Just a guess, I have never seen that happen, but who knows.

What version are you on, I can check to see if there is maybe a bug around this doozy.

Thanks,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade