Zen Cart Logo
Forums / General Questions / I deleted the Admin Activity Log table

I deleted the Admin Activity Log table

Views: 992

Results 1 to 7 of 7
10 Dec 2011, 10:15 PM
#1
mikebaida avatar

mikebaida

New Zenner

Join Date:
Dec 2011
Posts:
1
Plugin Contributions:
0

I deleted the Admin Activity Log table

Hey Everyone,

I am new to using zencart and when working with the mysqlphp i accidently deleted the admin_activity_log. How can i restore this via manual input?

Mike

10 Dec 2011, 10:25 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: I deleted the Admin Activity Log table

If you're talking about the table CONTENTS, you'll need to restore from backup.

If you're talking about the whole table, it's also best to restore from backup.

You could optionally reconstruct it from the original /zc_install/sql/mysql_zencart.sql code, but that's still gonna result in lost data. Best to restore from backup.

You DO make regular backups of your database, right? And ESPECIALLY before you go mucking about with the raw database data ... right?

11 Dec 2011, 12:14 AM
#3
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: I deleted the Admin Activity Log table

Can you not just go into the install db and setup the table structure in phpmyadmin as it is in the install db? Do you really need data in there? I thought that data is just a log of admin activity and is regularly deleted anyways.

11 Dec 2011, 12:26 AM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: I deleted the Admin Activity Log table

The log of admin activity comes in very handy if you ever get hacked.

11 Dec 2011, 12:28 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: I deleted the Admin Activity Log table

It's required for PCI compliance reasons, as an audit trail of who's been accessing what.

11 Dec 2011, 12:48 AM
#6
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: I deleted the Admin Activity Log table

So we should export it and save it for how long? Because that table does get big quick. TIA.

11 Dec 2011, 12:49 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: I deleted the Admin Activity Log table

The "Implementation Guide" included with v1.5.0 (and newer) includes guidance on that topic.
I believe the recommendation is 12 months.