[Mysql]漫游bin log
binlog是server层的日志,对于innodb来说,只有binlog写完后,才能提交redo log。binlog记录逻辑语句,只会记录写类似于sql的日志。binlog主要的作用 崩溃恢复 主从复制 组织结构 文件 binlog的相关配置可以执行show variables like '%bin%';查看 mysql> show variables like '%bin%'; +--------------------------------------------+---------------------------------+ | Variable_name | Value | +--------------------------------------------+---------------------------------+ | bind_address | * | | binlog_cache_size | 32768 | | binlog_checksum | CRC32 | | binlog_direct_non_transactional_updates | OFF | | binlog_error_action | ABORT_SERVER | | binlog_format | ROW | | binlog_group_commit_sync_delay | 0 | | binlog_group_commit_sync_no_delay_count | 0 | | binlog_gtid_simple_recovery | ON | | binlog_max_flush_queue_time | 0 | | binlog_order_commits | ON | | binlog_row_image | FULL | | binlog_rows_query_log_events | OFF | | binlog_stmt_cache_size | 32768 | | binlog_transaction_dependency_history_size | 25000 | | binlog_transaction_dependency_tracking | COMMIT_ORDER | | innodb_api_enable_binlog | OFF | | innodb_locks_unsafe_for_binlog | OFF | | log_bin | ON | | log_bin_basename | /data/mysql3306/mysql-bin | | log_bin_index | /data/mysql3306/mysql-bin....