Parameter description:Reference website Address:Https://github.com/danfengcao/binlog2sqlDownload the package directly from the official website, according to the method on GitHub, although it can be installed successfully, but the execution of the
mysqldump It is recommended to use data below 10g for backup, which is a logical backup of MySQL databasemysqldump instruction-A all tables-all-databases-b--databases db1 DB2 ...: Back up the specified libraries while creating the library (cannot be
Document directory
Mysqldump Backup Tool
Cold backup:
The cold backup of the InnoDB Storage engine is very simple. You only need to back up frm files, shared tablespace files, independent tablespace files (*. IBD), and redo log files of the
1 OverviewA transaction is a set of atomic SQL queries, or an independent unit of work that consists of one or more SQL statements, and MyISAM is not popular because it does not support transactional processing.2 transaction logThe transaction log
1. Global & DynamicExample:slow_query_log? Display the value of the variable:Currently set to OFF? Set the variables of the global &dynamic type in a session:As you can see, a variable of type global must have its value set by the Global keyword. ?
Open General_log log, get mysqldump EXECUTE statementShow VARIABLES like ' general_log% ' set GLOBAL general_log=onExecute backup commandMysqldump--single-transaction-uroot-pdmysqlbadmin--master-data=2-a -r-e >/data/test.sqlGet General_log Log161109
MySQL binlog recover data, sometimes may accidentally delete the data, suddenly catch urgent, how to do? Binlog to recover (if you open the Binlog), how to open it?In the my.cnf file, add the following[Mysqld]Log_bin = Mysql_binRestart the service
Mysql log file usage and data recovery bitsCN.com
Use and data recovery of mysql log files
I. mysql log type
MYSQL has different types of log files (each storing different types of logs), from which you can query what MYSQL has done and manage
(I) Importance of binary logs if data backup at a certain time point and all binary logs since then can be replayed before
(I) Importance of binary logs if data backup at a certain time point and all binary logs since then can be replayed before
[MySQLbinlog] thoroughly parses the binary log in the Mixed log format
[MySQL binlog] thoroughly parses the binlog in the Mixed log format
Mysql binlog3 formats, row, mixed, statement. Parsing
Mysqlbinlog -- base64-output = DECODE-ROWS-v
MySQLBinaryLog, also known as bin-log, is a binary log file generated by mysql execution changes. It has two main functions: * data recovery * master-slave database. Use
MySQL Binary Log, also known as bin-log, is a Binary Log file generated by
Mysql Log File Usage and data recovery I. mysql Log types MYSQL has different types of log files (each storing different types of logs ), from these, you can find out what MYSQL has done. For MYSQL management, these log files are indispensable. 1.
MySQL uses binary logs to restore data using the mysqlbinlog tool. you can refer to the MySQL help manual. It has detailed usage,
In this example, the focus is on the use of the -- start-position parameter and -- stop-position parameter.
· --
Mysql uses binlog incremental backup to restore the instance bitsCN.com
Mysql uses binlog incremental backup to restore an instance
I. What is incremental backup?
Incremental backup backs up new data. If you have 10 GB of data in a database, you
MySQLInnoDB manages and backs up binary logs bitsCN.com
MySQL InnoDB manages and backs up binary logs
(I) importance of binary logs
If there is data backup at a certain point in time and all binary logs from then on
You can replay the binary
[MySQLbinlog] thoroughly parses the binlog bitsCN.com in the Mixed log format
Mysql binlog3 formats: row, mixed, and statement. parsing
Mysqlbinlog -- base64-output = DECODE-ROWS-v mysql-bin.000144 | more
-Base64-output = DECODE-ROWS:The SQL changes
Mysql binlog3 formats: row, mixed, and statement. Parsing
Mysqlbinlog -- base64-output = DECODE-ROWS-v mysql-bin.000144 | more
-- Base64-output = DECODE-ROWS: displays the SQL changes brought about by row mode.
-V: displays SQL statements in
MySQL Binary Log, also known as bin-log, is a Binary Log file generated by mysql execution changes. It has two main functions:* Data Recovery* Master/Slave databases. It is used to add, delete, modify, and maintain synchronization with the master
MySQL uses binary logs to recover data two ways
If the MySQL server has binary logs enabled, you can use the MySQL tutorial Binlog tool to recover data starting at a specified point in time (for example, from your last backup) until now or another
MySQL binlog3 type format, row,mixed,statement. Parsing work
Mysqlbinlog--base64-output=decode-rows-v mysql-bin.000144 |more
--base64-output=decode-rows: Shows the SQL changes brought by the row mode.
-V: Shows the SQL statement brought by the
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.