博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql8学习手册第五部分 Transactions 事务以及Binlog日志的使用
阅读量:4094 次
发布时间:2019-05-25

本文共 880 字,大约阅读时间需要 2 分钟。

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

一:修改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

转载地址:http://otaii.baihongyu.com/

你可能感兴趣的文章
卧槽!Java 虚拟机竟然还有这些性能调优技巧...
查看>>
听说玩这些游戏能提升编程能力?
查看>>
7 年工作经验,面试官竟然还让我写算法题???
查看>>
被 Zoom 逼疯的歪果仁,造出了视频会议机器人,同事已笑疯丨开源
查看>>
上古语言从入门到精通:COBOL 教程登上 GitHub 热榜
查看>>
再见,Eclipse...
查看>>
超全汇总!B 站上有哪些值得学习的 AI 课程...
查看>>
如果你还不了解 RTC,那我强烈建议你看看这个!
查看>>
神器面世:让你快速在 iOS 设备上安装 Windows、Linux 等操作系统!
查看>>
沙雕程序员在无聊的时候,都搞出了哪些好玩的小玩意...
查看>>
太赞了!GitHub 标星 2.4k+,《可解释机器学习》中文版正式开放!
查看>>
程序员用 AI 修复百年前的老北京视频后,火了!
查看>>
漫话:为什么你下载小电影的时候进度总是卡在 99% 就不动了?
查看>>
我去!原来大神都是这样玩转「多线程与高并发」的...
查看>>
当你无聊时,可以玩玩 GitHub 上这个开源项目...
查看>>
B 站爆红的数学视频,竟是用这个 Python 开源项目做的!
查看>>
安利 10 个让你爽到爆的 IDEA 必备插件!
查看>>
自学编程的八大误区!克服它!
查看>>
GitHub 上的一个开源项目,可快速生成一款属于自己的手写字体!
查看>>
早知道这些免费 API,我就可以不用到处爬数据了!
查看>>