Mysql closes bin-log logs

Source: Internet
Author: User
Tags vps
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.

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.