DB irregularity

Talk about everything else besides Stratovarius here in English. Please try to put more serious topics here, and silly topics in the Spam section.
Post Reply
User avatar
JensJohansson
Administrator
Posts:1490
Joined:Thu Feb 28, 2002 10:45 pm
Contact:
DB irregularity

Post by JensJohansson » Thu Dec 30, 2010 2:17 pm

The forum database became corrupt in some mysterious way, and I had to go back to a snapshot which was 24 hours in the past. Thus, basically anything that happened the last 24 hours is not visible anymore.

I do have a copy also of the last 24h of activity but inserting this data is a bit messy, so tough cookies. :) It looks something like (very appx) 180 posts, one new topic and 6 PM's. If you changed your avatar or put someone on ignore the last 24h you may have to redo it. (And of course other shit like the sessions/ session cookies might be all fucked up so you may have to log in again.)

If anyone feels there was anything super important in any of this data that you would like to recover, send me an email.
Jens.

================================
"Koskenkorva is very good."
-Ronald Reagan
================================

User avatar
browneyedgirl
Sr. Member
Posts:27239
Joined:Thu Aug 29, 2002 6:00 pm
Location:Starfall
Contact:

Re: DB irregularity

Post by browneyedgirl » Thu Dec 30, 2010 2:48 pm

Yep---had to login again! :) No big deal.

Database irregular? Maybe it should try Ex-Lax! :D

:twak: :lol:

User avatar
Michael Jordan
Jr. Member
Posts:44
Joined:Wed Oct 27, 2010 9:54 pm

Re: DB irregularity

Post by Michael Jordan » Thu Dec 30, 2010 2:57 pm

It looks like Arnold Layne bumped 30 threads from 6 or 7 years ago.(2 times in a row) Maybe it's his fault. :x

User avatar
JensJohansson
Administrator
Posts:1490
Joined:Thu Feb 28, 2002 10:45 pm
Contact:

Re: DB irregularity

Post by JensJohansson » Thu Dec 30, 2010 3:35 pm

Michael Jordan wrote:It looks like Arnold Layne bumped 30 threads from 6 or 7 years ago.(2 times in a row) Maybe it's his fault. :x
Naw. But anyway maybe

Code: Select all

UPDATE phpbb_posts AS p, phpbb_topics AS t
  SET t.topic_status = 1
WHERE p.post_id = t.topic_last_post_id
  AND FROM_UNIXTIME&#40;p.post_time&#41; + INTERVAL 12 MONTH < NOW&#40;&#41;
  AND t.topic_status = 0

Success, 3807 row&#40;s&#41; affected. &#40; Query took 0.0615 sec &#41;
Jens.

================================
"Koskenkorva is very good."
-Ronald Reagan
================================

User avatar
ggonza43
Sr. Member
Posts:7280
Joined:Mon May 04, 2009 9:37 pm
Location:Bs. As., Argentina
Contact:

Re: DB irregularity

Post by ggonza43 » Thu Dec 30, 2010 10:26 pm

JensJohansson wrote:The forum database became corrupt in some mysterious way, and I had to go back to a snapshot which was 24 hours in the past. Thus, basically anything that happened the last 24 hours is not visible anymore.
Ah! That's why, thanks for the info Jens :). And you know, for being an administrator you are a great keyboardist :lol:. But seriously, I know it's a pain in the ass when that happens
|StratoFan Forever|

hiro23
Sr. Member
Posts:3206
Joined:Tue Jun 17, 2008 8:45 am
Location:saint george, utah

Re: DB irregularity

Post by hiro23 » Thu Dec 30, 2010 11:12 pm

ah I see now, thanks for letting us know
metal feeds the beast

ext0l
Member
Posts:67
Joined:Sat Oct 23, 2010 5:40 am
Location:North American

Re: DB irregularity

Post by ext0l » Fri Dec 31, 2010 1:55 am

JensJohansson wrote:

Code: Select all

UPDATE phpbb_posts AS p, phpbb_topics AS t
  SET t.topic_status = 1
WHERE p.post_id = t.topic_last_post_id
  AND FROM_UNIXTIME&#40;p.post_time&#41; + INTERVAL 12 MONTH < NOW&#40;&#41;
  AND t.topic_status = 0
Success, 3807 row&#40;s&#41; affected. &#40; Query took 0.0615 sec &#41;
Does this lock topics older than 1 year?

User avatar
NeverendingAbyss
Sr. Member
Posts:4840
Joined:Mon Sep 29, 2008 10:41 pm
Location:Betty White will outlive the queen.

Re: DB irregularity

Post by NeverendingAbyss » Fri Dec 31, 2010 5:26 am

Image

User avatar
Susie
Sr. Member
Posts:604
Joined:Thu Sep 02, 2010 3:05 am
Location:Santiago / Chile

Re: DB irregularity

Post by Susie » Sat Jan 01, 2011 12:47 am

NeverendingAbyss wrote:Image

:w00t:
-----------------------

Oh, no wonder the forum was being kind of rabid dog yesterday...

User avatar
NeonVomit
Sr. Member
Posts:4628
Joined:Thu Feb 20, 2003 5:36 pm
Location:London, UK

Re: DB irregularity

Post by NeonVomit » Sun Jan 02, 2011 2:07 am

Image

Ok, no I haven't even been on the forum in about a week or so, nothing important lost. I've just been waiting for a chance to use that picture.
"Beneath the freezing sky arrives Winter's Verge..."

http://www.wintersverge.com


I'm going to hell, and loving the ride!

User avatar
ggonza43
Sr. Member
Posts:7280
Joined:Mon May 04, 2009 9:37 pm
Location:Bs. As., Argentina
Contact:

Re: DB irregularity

Post by ggonza43 » Sun Jan 02, 2011 6:10 pm

NeonVomit wrote:Ok, no I haven't even been on the forum in about a week or so, nothing important lost.
WTF?! And Elysium :shock:?!
|StratoFan Forever|

Post Reply