MySQL database running, access records and logs

Source: Internet
Author: User
The following articles mainly show you how to view MySQL database operations, access records, and logs. We all know that MySQL database operations, access records, and logs are widely used, the following is a detailed introduction to these contents. 1. Check whether MySQLshowvariableslikelog_bi is enabled in your log.

The following articles mainly show you how to view MySQL database operations, access records, and logs. We all know that MySQL database operations, access records, and logs are widely used, the following is a detailed introduction to these contents. 1. Check whether MySQLshowvariableslike 'Log _ bi is enabled in your log.


The following articles mainly show you how to view MySQL database operations, access records, and logs. We all know that MySQL database operations, access records, and logs are widely used, the following is a detailed introduction to these contents.

1. First confirm whether your log is enabled

MySQL>showvariableslike'log_bin';

2. If ON is enabled, the log file is in the data directory of the MySQL installation directory.

3. How to know the current log

MySQL>showmasterstatus;

4. Use MySQLbinlog to view binary log files

shell>MySQLbinlogmail-bin.000001

Or

shell>MySQLbinlogmail-bin.000001|tail

Use a similar command in Windows.

498) this. width = 498; 'onmousewheel = 'javascript: return big (this) 'style = "width: 500px; height: 358px "height =" 358 "alt =" MySQL Database "width =" 500 "srcwidth =" 500 "srcheight =" 358 "zoomrate =" 1 "src =" regular/">

The above content is an introduction to how to view MySQL database running logs, access records, and other logs. I hope you will gain some benefits.

Original article address: MySQL database running, access records and logs. Thank you for sharing them with me.

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.