When bin-log is enabled, many files similar to the mysql-bin.0000 * are generated and may take up a lot of hard disk space. You can disable the log function if you do not need to configure the master or slave for vps of your testing machine or hard disk. The close operation is very simple. Find the configuration file my. cnf. For linux, the default
When bin-log is enabled, many files similar to the mysql-bin.0000 * are generated and may take up a lot of hard disk space. You can disable the log function if you do not need to configure the master or slave for vps of your testing machine or hard disk. The close operation is very simple. Find the configuration file my. cnf. For linux, the default
When bin-log is enabled, many files similar to the mysql-bin.0000 * are generated and may take up a lot of hard disk space. You can disable the log function if you do not need to configure the master or slave for vps of your testing machine or hard disk.
The close operation is very simple. Find the configuration file my. cnf. For linux, the file is usually opened in the/etc directory by default, and the following two configuration items can be commented out using.
Log-bin = mysql-binbinlog_format = mixed
After the configuration is modified, the mysqld service must be restarted to take effect. The system may receive an ERROR "ERROR 1186 (HY000): Binlog closed, cannot reset master" upon restart. The solution is to first log on to the mysql command line and execute reset master. The purpose of the reset master is to delete the bin-log files. Therefore, use this command with caution in the master and slave configuration environments.
Original article address: mysql closes the bin-log and thanks to the original author for sharing it.