随笔分类 -  MySQL

摘要:MySQL : 5.7.19 OS : rhel 6.3 jdbc : mysql-connector-java-5.1.45.jar java : 17.0.7 问题 :MySQL 数据库在修改 character_set_server 和 表的对应字段 为 utf8mb4 后,任然无法插入emo 阅读全文
posted @ 2024-08-14 17:44 Coye 阅读(13) 评论(0) 推荐(0) 编辑
摘要:How to Install 安装 Using the INSTALL PLUGIN statement: Unix/Linux: mysql> INSTALL PLUGIN clone SONAME 'mysql_clone.so'; Windows: mysql> INSTALL PLUGIN 阅读全文
posted @ 2023-05-05 13:31 Coye 阅读(33) 评论(0) 推荐(0) 编辑
摘要:简单的说一下,就是查询重写的插件,和Oracle 物化视图的查询重写还不太一样 Server version: 5.7.19-17-log Percona Server (GPL), Release 17, Revision e19a6b7b73f OS version: Red Hat Enter 阅读全文
posted @ 2021-12-23 09:48 Coye 阅读(368) 评论(0) 推荐(0) 编辑
摘要: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 阅读(136) 评论(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 阅读(1022) 评论(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 阅读(218) 评论(0) 推荐(0) 编辑
摘要:当执行 SQL语句删除行时,InnoDB不会立即从数据库中物理删除。 仅当InnoDB 丢弃 为删除而编写的undo log 时,才会物理删除行及其索引记录(删除对应数据文件中的记录和索引)。 这种仅发生在不再需要多版本并发控制(MVCC)或回滚之后的删除操作,称为purge。 purge 操作用于 阅读全文
posted @ 2020-07-08 23:26 Coye 阅读(887) 评论(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 阅读(565) 评论(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 阅读(1122) 评论(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 阅读(231) 评论(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 阅读(259) 评论(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 阅读(2241) 评论(0) 推荐(0) 编辑
摘要:mysql版本:5.7.19 mysqlbinlog mysql bin.000154 mysql bin.000154.txt /home/mysql/mysql_tools/pt query digest type binlog mysql bin.000154.txt zzg.sql mysq 阅读全文
posted @ 2020-05-25 15:35 Coye 阅读(413) 评论(0) 推荐(0) 编辑
摘要:已测试版本:5.5.18 OS :RHEL 6.3 前提:数据库无法启动,无备份,ibd文件还在! ibd文件还在! ibd文件还在! 背景:升级失败,undrop-for-innodb 只能读取ibdata 中的表的信息。 方法一 (无工具) 1. 在其他服务器安装相同版本的MySQL,建立空库y 阅读全文
posted @ 2020-05-13 09:45 Coye 阅读(728) 评论(0) 推荐(1) 编辑
摘要:OS:RHEL6.3 MySQL:5.7.19 [root@mysql02]# mysql -uroot -p****** -h127.1 -e"SHOW ENGINE INNODB STATUS\G" | sed -n -e '/BUFFER POOL AND MEMORY/,/INDIVIDUA 阅读全文
posted @ 2020-05-11 18:02 Coye 阅读(1841) 评论(0) 推荐(0) 编辑
摘要:Server version: 8.0.18 commercial MySQL Enterprise Server mysql SELECT FROM performance_schema.replication_group_members; + + + + + + + + | CHANNEL_NA 阅读全文
posted @ 2020-01-16 21:25 Coye 阅读(340) 评论(0) 推荐(0) 编辑
摘要:Server version: 8.0.18 commercial MySQL Enterprise Server MySQL在8.0.13后支持在线切换single primary和multi primary两种模式 切换至单主模式 mysql select group_replication_s 阅读全文
posted @ 2020-01-08 17:12 Coye 阅读(310) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示