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

第五章: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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值