Home > Database > Mysql Tutorial > How to close the log in mysql

How to close the log in mysql

WBOY
Release: 2021-12-21 15:15:41
Original
4871 people have browsed it

Mysql method to close the log: 1. Find the two codes "log-bin=mysql-bin" and "binlog_format=mixed" in the mysql configuration file; 2. Add before the two codes found "#", comment out the two lines of code; 3. Restart the MySql service.

How to close the log in mysql

The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.

How to close the log in mysql

Find the MySql configuration file, and then comment the following two lines (that is, add the # symbol at the beginning of the line) alright). Then restart the MySql service

***注释前请务必先停止MySQL***
/etc/init.d/mysql stop
然后在my.cnf注释下面两行(前面加#即可)
log-bin=mysql-bin
binlog_format=mixed
完成后重启MySQL
/etc/init.d/mysql restart
Copy after login

After the comments are completed:

#log-bin=mysql-bin
#binlog_format=mixed
Copy after login

[Related recommendations: mysql video tutorial]

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

Related labels:
source:php.cn
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