Solved

MySQL change alert.

Posted on 2013-05-21
12
386 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 108

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 108

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now