Six Types of MySQL logs

Source: Internet
Author: User

MySQLThe six types of logs in the database are required to monitor the database system, which is also very practical. The following section describes the six types of logs for MySQL, I hope this will help you.

Select log

Slow select log

Change log

Binary change log (binlog)

Alarm log

Error Log.

You can configure it in my. cnf.

Parameters

Description

Log

Write down all MySQL command operations in the select log,

Log-update

Text change log

Log-bin

This is a must-have for database replication.

Binlog_cache_size

The buffer length of the SQL statement that temporarily stores a transaction

Max_binlog_cache_szie

Maximum binary Cache log buffer size

Max_binlog_size

Maximum binary log size

Log-error

Severe Error Log

Log-warnings

Warning Level log, lower than error

Long_query_time

A slow query statement is generated when the number of seconds is exceeded.

Log-queries-not-using-indexes

No logs are queried using indexes,

Log-slow-queri

Slow query, which requires Optimization
 

This article describes the basic knowledge of the six types of logs in the MySQL database. Do not miss it for beginners who are just getting started. Finally, I hope you can gain some benefits from the content mentioned above.

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.