mysql8学习手册第五部分 Transactions 事务以及Binlog日志的使用

本文深入探讨了MySQL中InnoDB存储引擎的事务特性,包括原子性、一致性、隔离性和持久性,对比了MyISAM引擎的事务支持情况。同时,详细介绍了MySQL Binary Logging的使用方法,包括binlog的日志格式、位置修改及数据提取过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第五章:Transactions

  • Performing transactions
  • Using savepoints
  • Isolation levels
  • Locking

Transactions should also satisfy Atomicity, Consistency, Isolation, and Durability(ACID) properties.
事务应该保持原子性、一致性、隔离性、永久性

InnoDB , the default storage engine in MySQL, supports transactions whereas MyISAM does not support them.
InnoDB 支持事务,但是MyASIM引擎不支持事务

第六章:Binary Logging

  • Using binary logging
  • Binary log format
  • Extracting statements from a binary log
  • Ignoring databases to write to a binary log
  • Relocating binary logs

The binary log is not used for statements such as SELECT or SHOW that do not modify data

Using binary logging

使用binlog介绍
https://www.cnblogs.com/yanh0606/p/8213667.html

一:修改binlog日志位置

1.查询binlog位置show variables like 'log_%';

image

2.关闭mysql连接:systemctl stop mysqld
3.修改mysql binlog日志位置:

    #vi /etc/my.cnf
        [mysqld]
        log_bin=/var/lib/mysql/binlogs/web1-bin

4.启动mysql连接:systemctl start mysqld

show variables like 'log_%';
image

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值