What is the function of binlog in mysql
Most people do not understand the knowledge points of this article "what is the role of binlog in mysql", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the role of binlog in mysql" article.
1. Data recovery. As long as there is a backup of the database at a certain time and all the binlog after this time, the data of the database can be restored.
In our daily work, our DBA students can often help us recover the data from the database to any second.
2. Master-slave replication. In order to improve the efficiency of MySQL, we often do read-write separation, that is, one master and multiple slaves.
One master library (write library) and multiple slave libraries (read library).
At this point, the slave library can monitor the binlog log of the master library and write all changes to the library synchronously.
Example
Binlog_format = MIXEDlog-bin = E:mysql path\\ mysql-5.6.35-winx64\\ logs\\ mysql-bin.logexpire-logs-days = 7max_binlog_size = 200mbinlog_cache_size = 10mmax_binlog_cache_size = 500m is the content of this article about "what is the function of binlog in mysql". I believe you all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, Please follow the industry information channel.