摘要: Bug #79243 https://bugs.mysql.com/bug.php?id=79243 percona https://jira.percona.com/browse/PS-1085 set print element 0 set print pretty f 12 p thd->m_ 阅读全文
posted @ 2021-06-01 17:36 Coye 阅读(131) 评论(0) 推荐(0) 编辑
摘要: MySQL version: 8.0.18-commercial MySQL Enterprise Server OS: RHEL 6.3 MGR mysql> select * from performance_schema.replication_group_members; + + + + + 阅读全文
posted @ 2020-11-27 17:18 Coye 阅读(941) 评论(0) 推荐(0) 编辑
摘要: SHOW TRANSACTIONS; 居然是hive的语法,mysql 没有 阅读全文
posted @ 2020-09-08 15:22 Coye 阅读(233) 评论(0) 推荐(0) 编辑
摘要: MySQL version:8.0.18-commercial MySQL Enterprise Server 现有CBO的消耗的计算是根据一些常用数字来计算出结果的,如以下两张表engine_cost 和 server_cost mysql> select * from mysql.engine_ 阅读全文
posted @ 2020-07-17 14:37 Coye 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 当执行 SQL语句删除行时,InnoDB不会立即从数据库中物理删除。 仅当InnoDB 丢弃 为删除而编写的undo log 时,才会物理删除行及其索引记录(删除对应数据文件中的记录和索引)。 这种仅发生在不再需要多版本并发控制(MVCC)或回滚之后的删除操作,称为purge。 purge 操作用于 阅读全文
posted @ 2020-07-08 23:26 Coye 阅读(816) 评论(0) 推荐(0) 编辑
摘要: 参考 https://dev.mysql.com/doc/refman/5.7/en/optimizer-hints.html Hint Name Description Applicable Scopes BKA, NO_BKA Affects Batched Key Access join pr 阅读全文
posted @ 2020-07-08 22:29 Coye 阅读(498) 评论(0) 推荐(0) 编辑
摘要: OS version:Red Hat Enterprise Linux Server release 6.3 (Santiago) MYSQL version: 8.0.18-commercial MySQL Enterprise Server - Commercial [root@mysql08 阅读全文
posted @ 2020-06-27 20:49 Coye 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: MySQL version:8.0.18-commercial MySQL Enterprise Server - Commercial 正常查询GTID 是一间比较麻烦的事情 查询结果如下: mysql> select @@gtid_purged,@@gtid_executed; + + + | 阅读全文
posted @ 2020-06-27 16:28 Coye 阅读(230) 评论(0) 推荐(0) 编辑
摘要: MySQL version:8.0.18-commercial MySQL Enterprise Server - Commercial 语法: GROUP_CONCAT([DISTINCT] expr [,expr ...] [ORDER BY {unsigned_integer | col_na 阅读全文
posted @ 2020-06-27 16:13 Coye 阅读(253) 评论(0) 推荐(0) 编辑
摘要: MySQL version:8.0.18-commercial MySQL Enterprise Server - Commercial HA: MGR 问题: 导入sql文件,大小371MB 导入数据过程中 [Err] 3100 - Error on observer while running 阅读全文
posted @ 2020-06-27 12:35 Coye 阅读(2130) 评论(0) 推荐(0) 编辑