954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Monitoring changes in a MySQL DB

Hi all......another question for ya all :S

Does anyone know of a way to monitor a change to a database,
Basically I need to write some code for my app that can detect a change i.e. table x has been modified in someway or table y has been created etc?

Anyone help me with this??

Thanks

mstester
Newbie Poster
17 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

Bascially take an image of that table before then an image after and compare.

Select * from table x
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

How would I do that though?
Also would that not be a huge overhead if your monitoring the entire db?

mstester
Newbie Poster
17 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

First & Foremost, Why On Earth Would You Want To Monitor Changes (Inserts, Updates, Deletes, Create Tables !) In The WHOLE Database ?

What Programming Environment Are You Writing Your Application In ? VB6 / VB.NET /C# etc

If The RDMS Is Oracle Or SQL Server 2005 (Standard) I Believe You Can Register Queries Within The Database To Be Posted Notification Events. Try Google "Database Notification Events" !!!!

FYI : I've Done It Using SQL Server 2000, Database Triggers, Extended Stored Procedures & A VB6 Application.

SkinHead
Light Poster
31 posts since May 2007
Reputation Points: 12
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You