Solved

MySQL change alert.

Posted on 2013-05-21
12
397 Views
Last Modified: 2013-06-10
Dear all,

Any way to make MySQL server send an email alert (by operators) if any database structure change and what it is ?

Any third party tools needs for this ?

DBA100.
0
Comment
Question by:marrowyung
  • 4
  • 2
12 Comments
 
LVL 5

Expert Comment

by:_-MYFOX-_
ID: 39183973
0
 
LVL 1

Author Comment

by:marrowyung
ID: 39186528
That one is not about database structure change but data inside change ,just like a row has been added.

I just want the database/table structure change.
0
 
LVL 1

Author Comment

by:marrowyung
ID: 39186636
That one don't even tell what field has been changed. who did it and what is the query, time stamp etc...
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39194886
Any way to make MySQL server send an email alert (by operators) if any database structure change and what it is ?

There is nothing inherent in MySQL server that will do this, but you could write programming that might get some of it to work. If you want to monitor the data base structure, you might write queries that collect the names of all the tables and use SHOW CREATE TABLE queries to gather the information into a long data string.  Then you could have your script make the md5() digest of this string and compare it to the last md5() digest.  If the digests are the same, no change has occurred.  

Sorry there is no magic bullet.
0
 
LVL 1

Author Comment

by:marrowyung
ID: 39198458
Ray_Paseur,

In MS SQL we can do something like DDL triggering, so in MySQL, it is not going to exists even MySQL 5.5 enterprise ?

data base structure change can be something like:
1) a column has been added.
2) an index has been added,

etc..

"SHOW CREATE TABLE"

this statement just show the CREATE TABLE statement that creates the given table, it should have nothing to do with this, right?

where should I store the md5() digest of this string ? in a table ?

But this one still don't tell what has been changed, who change it and the command make this happen, the time create it.. rihgt?
0
 
LVL 1

Author Comment

by:marrowyung
ID: 39221365
please also unlock my ability ask question agian, I have already close many.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39228760
@marrowyung: I want an explanation of why you gave the worst possible grade anyone can give at Experts-Exchange.  I tried to tell you that there was nothing built-in to do what you want.  You're asking for a pink unicorn.  There are no pink unicorns, full stop.  At that point you must have understood that you were on the threshold of application development, and that there was no "quick and easy" answer.  Just because you asked a question for which there is no answer, that is not any sort of justification for giving a bad grade.

Please see the grading guidelines here:
http://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26
The asker must justify giving a C grade
In addition to your justification of the grade, it would be helpful if you would explain why I should try to help with any of your questions in the future.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question