1.2GB of visitors database problem

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
murdocha
Posts: 4
Joined: Sun May 13, 2007 2:19 pm

1.2GB of visitors database problem

Post by murdocha »

Hi All

Bit of a problem with my database.

It has one table 1.2GB in size of simply visitors data.

Can I use phpMYAdmin to simply empty this table of its contents?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 1.2GB of visitors database problem

Post by garvinhicking »

Hi!

Yes, you can simply use phpmyadmin to either empty the whole table (empty, NOT delete/drop!) or you can use a query like this to only delete visitor data older than 6 months:

Code: Select all

DELETE FROM serendipity_visitors WHERE UNIX_TIMESTAMP(day) < UNIX_TIMESTAMP('2008-04-01');
Everything earlier than 2008-04-01 will then be removed.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply