Track MySQL operations records

Source: Internet
Author: User

Test environment inexplicably there are several important data is deleted, because in Binlog only see is the public account deleted, unable to query who is in which time period log in, consider how to record every MySQL account login information, in MySQL, Each connection executes the Init-connect first and the connection is initialized, where we can get the user's login name and thread ID value. Then with Binlog, we can track the operation time of each operation statement, the operator and the client's connection process information, etc. Implement audits.

See http://blog.csdn.net/bestone0213/article/details/44307267 and http://blog.csdn.net/yabingshi_tech/article/details/46548809 for details.

This article from the "Little Flash" blog, declined to reprint!

Track MySQL operations records

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.