MySQL binary log on under Linux Open

Source: Internet
Author: User

Long time no blog, the recent technical study is very few. Don't say much, go straight to the chase.

It is recently necessary to open the MySQL update log (that is, binary log) under Linux, which can be used to avoid database errors or data loss before being able to revert to the operation. But many of the online posts are copy sticky, even for several days have not set a successful. Most of the online methods are encountered, the database restart failed.

Tried a lot of methods, finally set a successful, very grateful to the author of the post of God.

MySQL query log, slow query log, error log, the online Setup method is correct. However, there is a problem with the binary log set. The correct setup method is as follows,

In the/etc/my.cnf file, under "Mysqld", add

#更新日志

Server-id = 1
Log-bin = Binlog
Log-bin-index = Binlog.index

, the statement in the red box,

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/75/wKioL1VJ2EzztmWHAAJwUNmWn2g257.jpg "title=" 11112. JPG "alt=" wkiol1vj2ezztmwhaajwunmwn2g257.jpg "/>

Start MySQL successfully. Attach the official God post, thank you very much

Http://www.111cn.net/database/mysql/48098.htm


This article is from "Rookie It" blog, please make sure to keep this source http://han223909.blog.51cto.com/6249236/1643497

MySQL binary log on under Linux Open

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.