Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Tue Mar 19, 2024 8:47 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 15, 2011 12:20 am 
Offline
Newbie

Joined: Tue Sep 13, 2011 9:18 pm
Posts: 4
Is it possible to remove all scanned printers from OAv2 database?


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 15, 2011 10:31 pm 
Offline
Newbie

Joined: Tue Sep 13, 2011 9:18 pm
Posts: 4
When I'm trying it to remove directly from database I'm getting such an error:

[code]Error
SQL query:

DELETE FROM `audit`.`system` WHERE `system`.`system_id` =1024

MySQL said:

#1451 - Cannot delete or update a parent row: a foreign key constraint fails (`audit`.`oa_group_sys`, CONSTRAINT `oa_group_sys_system_id` FOREIGN KEY (`system_id`) REFERENCES `system` (`system_id`)) [/code]

Any suggestions?


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 15, 2011 10:56 pm 
Offline
Newbie

Joined: Tue Sep 13, 2011 9:18 pm
Posts: 4
I found a solution! We have to remove all printer records from 'oa_audit_log' and 'oa_group_sys' tables :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group