phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Table crash


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 533
Location: North West UK


flag
PostPosted: Fri Jun 12, 2015 1:13 pm 
Post subject: Table crash

For the very first time I have just experienced my database crash. This was a single table in the database (sessions table)
What would be the most likely cause of a table such as "sessions" crashing or is it just one of those things and I have been lucky up to now?

The whole server had been down for unknown reason and had just been rebooted. Could that be the cause?

Jim

_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 79
Location: Stolpen, Saxony, Germany


flag
PostPosted: Sun Jun 14, 2015 8:54 am 
Post subject: Re: Table crash

Is your sessions table using the default MyISAM engine? In most cases MEMORY would be the better storage engine (you can change it with ALTER TABLE prefix_sessions ENGINE=MEMORY; ).

This stores the structure of the table on disk, but it's contents in RAM of the server (make sure your server has enough RAM and MySQL enough assigned), emptying the table when MySQL is stopped/restarted.

To repair the sessions table:
REPAIR TABLE prefix_sessions;

If your server rebooted without a MySQL clean shutdown, this can lead to a problem with tables, when data is written to the disk during that moment. Normally, MySQL autochecks most databases and tables on startup and tries to repair them on its own (or prompting the user to do that, only with shell access), but there can always be some lost or corrupted data.

A lot of database related problems in phpBB 2.x origin of corrupted sessions tables.
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 533
Location: North West UK


flag
PostPosted: Sun Jun 14, 2015 9:02 am 
Post subject: Re: Table crash

Thanks for the info. I shall monitor it for a while before deciding whether to make any change. That is the first table crash in 10 years.

Jim

_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
Matuse
Board Member



Joined: 18 Apr 2017

Posts: 1



PostPosted: Sat Apr 22, 2017 7:24 am 
Post subject: Re: Table crash

Jim_UKe wrote:
Thanks for the info. I shall try the Yoga Burn monitor it for a while before deciding whether to make any change. That is the first table crash in 10 years.

Jim


I've had one of those rare occasional crashes after years of running perfectly recently, just like yourself.
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 533
Location: North West UK


flag
PostPosted: Sat Apr 22, 2017 7:30 am 
Post subject: Re: Table crash

We have had no problems since that incident.
Have you run a repair on your database tables?

Jim

_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0103 seconds using 16 queries. (SQL 0.0015 Parse 0.0002 Other 0.0086)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo