Rechercher dans le manuel MySQL
5.4.4.4 Logging Format for Changes to mysql Database Tables
The contents of the grant tables in the mysql
database can be modified directly (for example, with
INSERT
or
DELETE
) or indirectly (for
example, with GRANT
or
CREATE USER
). Statements that
affect mysql
database tables are written to
the binary log using the following rules:
Data manipulation statements that change data in
mysql
database tables directly are logged according to the setting of thebinlog_format
system variable. This pertains to statements such asINSERT
,UPDATE
,DELETE
,REPLACE
,DO
,LOAD DATA
,SELECT
, andTRUNCATE TABLE
.Statements that change the
mysql
database indirectly are logged as statements regardless of the value ofbinlog_format
. This pertains to statements such asGRANT
,REVOKE
,SET PASSWORD
,RENAME USER
,CREATE
(all forms exceptCREATE TABLE ... SELECT
),ALTER
(all forms), andDROP
(all forms).
CREATE TABLE ...
SELECT
is a combination of data definition and data
manipulation. The CREATE TABLE
part is logged using statement format and the
SELECT
part is logged according
to the value of binlog_format
.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-binary-log-mysql-database.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.