GroundWork Forums: Cleanup database - GroundWork Forums

Jump to content

These forums have been imported from our old platform and are in a read-only state. Please use this forum to start new discussions.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cleanup database

#1 User is offline   TomTom 

  • Newbie
  • Pip
  • Group: Imported Members
  • Posts: 6
  • Joined: 19-July 07

Posted 02 April 2009 - 01:02 AM

hello

I would like to clean up my mysql database.
The availability data is stored since 2 years.
Is there a simple way to delete all old data until last year?

thanks a lot
thomas
0

#2 User is offline   mlist 

  • Advanced Member
  • PipPipPip
  • Group: Imported Members
  • Posts: 73
  • Joined: 07-May 07

Posted 02 April 2009 - 02:56 AM

Good question! I'm interested also. Hope some guru will reply!
0

#3 User is offline   curious_user2000 

  • Newbie
  • Pip
  • Group: Imported Members
  • Posts: 6
  • Joined: 11-February 09

Posted 05 April 2009 - 04:54 PM

I think most of us would,

I believe you can clean up Monarch database using the following:
cat /usr/local/groundwork/databases/monarch.sql | mysql monarch

If you set a root password for mysql (you should!), then use:

cat /usr/local/groundwork/databases/monarch.sql | mysql -u root -p monarch

and it will prompt you for the password.

WARNING: This will DELETE ALL your config data. You might want to do a backup first (Control - Commit - Backup - Abort).

You can restore a backup with a similar procedure, for instance

cat /usr/local/groundwork/monarch/backup/2008-03-25_17-25-47/monarch-2008-03-25_17-25-47.sql | mysql monarch
as per a posting on this group.

But I have issues with nagvis not updateing, and would really like to clean out the GWCollegeDB database, can anyone give me any pointers?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users