Home > Database > Mysql Tutorial > body text

What is binlog in mysql

WBOY
Release: 2023-05-30 13:55:06
forward
1418 people have browsed it

1. Binlog is a general archive log of the MySQLServer layer.

All storage engines in the Engine layer can use binlog.

2. Binlog is a logical log. Sequential recording of DDL and DML statements in the database.

3. Binlog logs can be added. When the binlog file reaches a certain size, it will automatically switch to the next file.

The original binlog file will not be overwritten. The above is the understanding of binlog in mysql, I hope it will be helpful to everyone.

Example

SET GLOBAL binlog_format = 'STATEMENT';
SET GLOBAL binlog_format = 'ROW';
SET GLOBAL binlog_format = 'MIXED';
Copy after login

The above is the detailed content of What is binlog in mysql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template