Open-AudIT

What's on your network?
It is currently Wed Jan 24, 2018 9:08 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 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`))


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  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 4 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:  
Powered by phpBB® Forum Software © phpBB Group