文章分类 -  MYSQL

摘要:1. 主库创建只读账号 CREATE USER 'user_to_salve'@'%' IDENTIFIED BY '123456';grant select on *.* to "user_to_salve"@"%" identified by "123456";flush privileges; 阅读全文
posted @ 2022-10-21 05:47 笑笑ai 阅读(112) 评论(0) 推荐(0)
摘要:官网:https://www.percona.com/downloads/percona-toolkit/LATEST/ 阅读全文
posted @ 2022-10-12 04:17 笑笑ai 阅读(14) 评论(0) 推荐(0)
摘要:explain分析 type: system: 系统表,表里只有一行数据 const: 使用主键或唯一索引等值查询 eq_ref: 使用主键索引或唯一索引等值表连接 ref: 非唯一性索引等值查询 ref_or_null: 非唯一性索引,包含null值 冗余字段 阅读全文
posted @ 2022-10-10 03:02 笑笑ai 阅读(12) 评论(0) 推荐(0)