If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Database corrupt?? Site down!

Database corrupt?? Site down!

Locked

Started by gemohler on 30 Dec 2007, 11:27 PM · Views: 2,566

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
30 Dec 2007, 11:27 PM
#1
gemohler avatar

gemohler

Zen Follower

Join Date:
Jul 2005
Location:
CA
Posts:
223
Plugin Contributions:
0

Post #1 by gemohler

But..the table is not corrupted, I checked.

Here is my error:

http://www.speedtoys.biz

1194 Table 'sessions' is marked as crashed and should be repaired
in:
[select value from sessions where sesskey = '517573efd56189b639f978df230322e9' and expiry > '1199057077']

Same thing for the /admin URL attempts.

???

Ive even cleared the -1- session that was in the sessions table as well. Same error.

Ugh..

31 Dec 2007, 12:29 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Did you do a "repair" on the table?

If you can't repair it yourself, you'll need to talk to your hosting company.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Dec 2007, 12:33 AM
#3
gemohler avatar

gemohler

Zen Follower

Join Date:
Jul 2005
Location:
CA
Posts:
223
Plugin Contributions:
0

Post #3 by gemohler

DrByte:

Did you do a "repair" on the table?

If you can't repair it yourself, you'll need to talk to your hosting company.

yup. Tried that. Mysql says its quite fine.

31 Dec 2007, 2:46 AM
#4
gemohler avatar

gemohler

Zen Follower

Join Date:
Jul 2005
Location:
CA
Posts:
223
Plugin Contributions:
0

Post #4 by gemohler

gemohler:

yup. Tried that. Mysql says its quite fine.

Just did -another- 'check tables sessions;' and it was -bad- this time.

Repaired it..and im all good.

I had..3 people check the very same things before I posted here earlier, and it kept reporting good.

even dropped the table and recreated..

Was the host caching a bit aggressively?

29 Nov 2009, 8:35 PM
#5
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #5 by beyre

Our server went down sometime after 3am EST this morning. Serverbeach finally got it up and running an hour ago. There was a bunch of errors and they had to go do BIOS checks in safe mode. They say the errors were not a result of anything we did.

However, now all the zencarts on our server have the above error.

I am not good with databases what-so-ever.

Exactly HOW do you repair this? I need step by step instructions.

There is a mod, according to another thread (also from 2007) that said the mod fix cache key worked to fix the problem. However, it is not updated for zencart v1.3.8.

What do I do? This is an emergency - all the carts are down!

30 Nov 2009, 2:26 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

I'm assuming you're referring to the "1194 Table 'sessions' is marked as crashed and should be repaired" error?

If so, simply go to your phpMyAdmin, choose your database, choose your "sessions" table, and choose "repair" from the "Operations" tab and click Go.
You might need to do that with all of your tables.
Your hosting company might have a button for "Repair Database" in your hosting control panel, inside your MySql settings, which will do a "repair" on all your tables automatically without having to use phpMyAdmin.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Nov 2010, 10:58 PM
#7
vivek_advsol avatar

vivek_advsol

New Zenner

Join Date:
Nov 2009
Posts:
34
Plugin Contributions:
0

Post #7 by vivek_advsol

Hi Dr.Byte,

Why it is happening? could you give me an idea please!!

21 Nov 2010, 11:48 PM
#8
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

Post #8 by plymgary1

Hi,

I know this won't help much at the moment but, if you set up a cron job through your control panel in the future, if you experience any problems you can roll back to a previous version of your database.

Gary :smile: