MySQL Bin-log log too large causes disk full problem solved.

Source: Internet
Author: User
Tags log log mysql command line

Today found the company monitoring system problems, check found that the original Bin-log log too large to cause the disk full, resulting in the inability to insert data. Then find a solution on the Internet.

1. Stop the library and delete the Bin-log log.

2. Perform reset master; (in the case of No library)

3. Execute Show binary logs;

Deletes the log before the specified bin-logs purge binary logs to 'MySQL-bin.000018 ';

The MySQL command line is stuck when a problem occurs during the operation of the Bin-log command. Finally restarted the database resolved.

After you delete the Bin-log log

Set global expire_logs_days = 10;
This is an order (only 10 days of Bin-log logs are reserved)
In or my.cnf plus expire_logs_days = 10


This article is from the "Li-Enlightened" blog, please make sure to keep this source http://jzzjw.blog.51cto.com/9921462/1717347

MySQL Bin-log log too large causes disk full problem solved.

Related Article

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.