关于 azure-database-mysql
面向支持数据库规划与运维的 Agent,提供 Azure Database for MySQL 指导。内容结合本地速查资料与联网文档获取,涵盖故障排查、安全、配置和部署。
主要功能
- 01故障排查与运维指导
- 02架构和服务层级选择
- 03安全与配置参考
- 04迁移和部署指导
- 05本地参考与远程文档获取
适用场景
- 01诊断连接或查询性能问题
- 02规划迁移 MySQL 到 Azure
- 03评估安全与高可用选项
MCP 相关
该技能建议使用 `mcp_microsoftdocs:microsoft_docs_fetch` 工具获取 Microsoft 文档,并提供 `fetch_webpage` 作为备用方式。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ microsoftdocs/ agent-skills --skill azure-database-mysql安装后在 Claude Code 中输入/azure-database-mysql确认已加载。
详细介绍
Azure Database for MySQL 技能
此技能提供有关 Azure Database for MySQL 的专业指导,涵盖故障排除、最佳实践、决策、架构与设计模式、限制与配额、安全性、配置、集成与编码模式,以及部署。它结合了本地快速参考内容与远程文档获取功能。
如何使用此技能
重要提示(面向 Agent):使用下方的类别索引查找相关部分。对于包含行范围的类别(例如
L35-L120),使用read_file读取指定行。对于包含文件链接的类别(例如[security.md](security.md)),使用read_file读取链接指向的参考文件。
重要提示(面向 Agent):如果
metadata.generated_at距今超过 3 个月,请建议用户从代码仓库获取最新版本。如果无法使用mcp_microsoftdocs工具,请建议用户安装该工具:安装指南
此技能需要网络访问权限,以获取文档内容:
- 首选:使用
mcp_microsoftdocs:microsoft_docs_fetch,查询字符串为from=learn-agent-skill。返回 Markdown。 - 备用:使用
fetch_webpage,查询字符串为from=learn-agent-skill&accept=text/markdown。返回 Markdown。
类别索引
| 类别 | 行 | 描述 |
|---|---|---|
| 故障排除 | L37-L53 | 诊断和解决 MySQL Flexible Server 问题:连接和 CLI 错误、性能(CPU/内存/查询)、容量、损坏、复制延迟,以及使用日志/自我修复工具。 |
| 最佳实践 | L54-L73 | Azure Database for MySQL 的监视、性能优化、维护、只读副本、BCDR、故障排除、安全重启,以及迁移/迁移后优化方面的最佳实践。 |
| 决策 | L74-L90 | 在 Azure 上规划 MySQL 的指导:版本策略、高可用性/灾难恢复与业务连续性、容量规划与层级、性能基线,以及选择/迁移到/升级到 Flexible Server。 |
| 架构与设计模式 | L91-L97 | AKS 连接 MySQL Flexible Server、设计备份/还原、数据导入/导出复制、(区域冗余)高可用性,以及基于只读副本进行扩展的模式。 |
| 限制与配额 | L98-L106 | MySQL Flexible Server 的限制、配额和性能上限:最大连接数/核心数/IOPS、存储 IOPS 行为、配额提升请求、重启/停止限制,以及删除/还原时间限制。 |
| 安全性 | L107-L132 | Azure MySQL 的网络、身份验证和加密安全性:专用/公共访问、防火墙、TLS、证书轮换、审核日志、CMK/静态数据加密、Entra 身份验证,以及安全的用户/迁移设置。 |
| 配置 | L133-L163 | 配置 Azure Database for MySQL Flexible Server:参数、高可用性、网络、日志记录、监视、警报、维护时段、复制、扩展、备份和只读副本。 |
| 集成与编码模式 | L164-L175 | 将应用和工具连接到 MySQL Flexible Server(CLI、JDBC、Power BI)、管理连接字符串,以及使用各种工具从 RDS、本地/VM 或大型数据库迁移 MySQL 数据。 |
| 部署 | L176-L184 | 自动化 MySQL Flexible Server 部署与更改(Azure Pipelines、GitHub Actions、Automation),处理备份、异地还原、版本升级和计划维护。 |
故障排除
最佳实践
决策
架构与设计模式
| 主题 | URL |
|---|---|
| 将 Azure Kubernetes Service 连接到 MySQL Flexible Server | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-aks |
| 设计复制数据到 MySQL Flexible Server | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-data-in-replication |
| 设计从 MySQL Flexible Server 复制数据 | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-data-out-replication |
限制与配额
| 主题 | URL |
|---|---|
| Azure MySQL Flexible Server 的服务限制 | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-limitations |
| MySQL Flexible Server 的存储 IOPS 性能特征 | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-storage-iops |
| 申请提高 Azure MySQL Flexible Server 配额 | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-request-quota-increase |
| 在保留期限限制内还原已删除的 Azure MySQL flexible servers | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-restore-dropped-server |
| 在停止时长限制内重启、停止和启动 MySQL flexible server | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/scripts/sample-cli-restart-stop-start |
安全性
配置
集成与编码模式
部署
| 主题 | URL |
|---|---|
| 为 Azure MySQL 部署配置 Azure Pipelines 任务 | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/azure-pipelines-deploy-database-task |
| 创建用于管理 MySQL Flexible Server 的 Azure Automation 任务 | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/create-automation-tasks |
| 使用地理还原在区域之间移动 Azure MySQL Flexible Server | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-move-regions |
| 使用 CLI 从备份还原 Azure MySQL Flexible Server | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-restore-server-cli |
| 通过门户从备份还原 Azure MySQL Flexible Server | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-restore-server-portal |
| 使用 GitHub Actions 将更改部署到 Azure MySQL | https://learn.microsoft.com/en-us/azure/mysql/flexible-server/quickstart-mysql-github-actions |
评论
支持 Markdown