Talking about the log file system of MySQL

Source: Internet
Author: User

Like most relational databases, log files areMySQLimportant part of the database. MySQLThere are several different log files, usually including error log files, binary logs, general logs, slow query logs , and so on. These logs can help us locatemysqldinternal events, database performance failures, record data changes history, user recovery database, etc.


composition of the MySQL log file system


A, error log: Records The issue that occurs when you start, run, or stop mysqld.

b. General log: Records the established client connections and executed statements.

c, update log: The statement that records the change data. The log is no longer used in MySQL 5.1.

d, binary log: A statement that records all changes to the data. Also used for replication.

e, slow query log: Records all queries that have been executed for more than long_query_time seconds, or queries that do not use indexes.

F,Innodb logs:Innodb redo Log

You can force mysqld to close and reopen the log file (or, in some cases, switch to a new log) by refreshing the log.

when you perform a When you FLUSH the LOGS statement or perform mysqladminflush-logs or mysqladmin refresh , the log is aged.



Talking about the log file system of MySQL

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.