mysql

仓库创建 2026年6月30日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

适合需要安全迁移与 EXPLAIN 调优的后端或 DBA 使用。

▸ 风险提示

可能涉及破坏性迁移或敏感数据操作,使用前请备份。

这个 Skill 做什么

为 MySQL/MariaDB 提供架构设计、索引、事务、复制与查询优化建议。

针对 MySQL 8+/MariaDB(InnoDB)给出建模、索引、事务隔离、复制与慢查询优化的实用建议:包括写表结构、调优 SQL(用 EXPLAIN 看执行计划)、安全迁移和复制配置。在做数据库设计、性能排查或上线变更时用,能避免常见的锁表和性能坑。特色是兼顾线上无缝迁移(online DDL)、GTID/binlog 复制等生产级细节。

▸ 展开 SKILL.md 英文原文

Use for MySQL 8.0+/MariaDB (InnoDB) — schema design, indexing, transactions/isolation, replication, query tuning with EXPLAIN, safe migrations. Triggers — mysql CLI, SQL DDL on a MySQL stack.

开发编程数据库索引查询优化通用
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/muxammadmamajonov/dot-claude/main/.claude/skills/mysql/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/muxammadmamajonov/dot-claude/main/.claude/skills/mysql/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# MySQL / MariaDB Development

## When to use
- Designing or reviewing table schemas, constraints, and indexes for MySQL/MariaDB
- Writing or optimising SQL queries, stored procedures, or CTEs (MySQL 8.0+)
- Authoring database migrations with attention to locking and online DDL
- Configuring InnoDB settings, replication (GTID / binlog), and read replicas
- Diagnosing slow queries with `EXPLAIN` and the slow query log
- Planning backups, point-in-time recovery, or failover strategies
- Migrating from MySQL 5.7 to 8.0 or from MyISAM to InnoDB

## Workflow

1. **Understand the access patterns first** — schema design follows query design. Identify the top-10 most frequent read queries and write 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有