摘要:
0.前期准备条件 查看linux的版本 [root@mysql etc]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) Could NOT find Curses yum install ncurses-devel Bis 阅读全文
posted @ 2018-06-14 09:57
东瑜
阅读(16122)
评论(2)
推荐(2)
|
摘要:
0.前期准备条件 查看linux的版本 [root@mysql etc]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) Could NOT find Curses yum install ncurses-devel Bis 阅读全文
posted @ 2018-06-14 09:57
东瑜
阅读(16122)
评论(2)
推荐(2)
摘要:
参数名:innodb_flush_log_at_trx_commit 参数值: + 0 事务提交的时候,不会去刷日志缓存区,也不会立马写入至日志文件中。这种设置最危险。如果数据库挂了且运气不好,数据库的最新的更新数据都会丢失,即使事务提交了,但丢失的事务一般是最近1秒内发生的。 + 1 事务提交时, 阅读全文
posted @ 2018-06-12 13:20
东瑜
阅读(1287)
评论(0)
推荐(0)
摘要:
实验环境:两个MySQL实例 IP地址:10.0.0.201 端口:3306 (MySQL的Master) IP地址:10.0.0.201 端口:3307 (MySQL的Slave) 需要的参数 + server_id: 每个MySQL实例的server_id必须不一样。 + log bin:MyS 阅读全文
posted @ 2018-06-12 11:07
东瑜
阅读(171)
评论(0)
推荐(0)
摘要:
GTID的概念 何为GITD GTID(global transaction identifier)是全局事务标识符,在MySQL5.6版本中作为一个超级特性被推出。事务标识不仅对于Master(起源)的服务器来说是惟一的,而且在整个复制拓扑架构来说,也是全局唯一的。 1.GTID的格式 GTID分 阅读全文
posted @ 2018-06-12 09:50
东瑜
阅读(207)
评论(0)
推荐(0)
|