mysql-administration/SKILL.md
Expert MySQL 8 administration: replication topology, InnoDB Cluster / Group Replication, security hardening, backup strategies with mysqldump/mydumper/xtrabackup, monitoring with Performance Schema, and production operations. Use when setting up...
npx skillsauth add peterbamuhigire/skills-web-dev mysql-administrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
mysql-administration or would be better handled by a more specific companion skill.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.[mysqld]
# --- Identity ---
server-id = 1 # unique per node
report_host = mysql-a # used by InnoDB Cluster
# --- Character set ---
character_set_server = utf8mb4
collation_server = utf8mb4_unicode_ci
# --- InnoDB memory ---
innodb_buffer_pool_size = 10G # 70% of available RAM
innodb_buffer_pool_instances = 8 # 1 per GB of pool; reduces contention
innodb_log_buffer_size = 48M # larger for heavy write workloads
# --- InnoDB redo log (MySQL 8.0.30+) ---
innodb_redo_log_capacity = 2G # replaces innodb_log_file_size
# Legacy (pre-8.0.30): innodb_log_file_size=512M innodb_log_files_in_group=2
# --- InnoDB durability ---
innodb_flush_log_at_trx_commit = 1 # 1=ACID-safe; 2=faster, 1s risk
innodb_flush_method = O_DIRECT # bypass OS cache; avoids double-buffer
innodb_file_per_table = ON # one .ibd file per table
innodb_doublewrite = ON # crash-safe page writes (default)
# --- Connections ---
max_connections = 500
thread_cache_size = 50
wait_timeout = 600 # idle non-interactive connection TTL
interactive_timeout = 600
# --- Slow query log ---
slow_query_log = 1
slow_query_log_file = /var/log/mysql-slow.log
long_query_time = 1 # seconds; lower in latency-sensitive systems
log_queries_not_using_indexes = OFF # enable when diagnosing index gaps
# --- Binary log (required for replication) ---
log-bin = mysql-bin
log-bin-index = mysql-bin.index
binlog_format = ROW # safest for replication; required for GR
sync_binlog = 1 # flush binlog per commit; ACID-safe
expire_logs_days = 7
# --- GTID ---
gtid_mode = ON
enforce_gtid_consistency = ON
# --- Network ---
bind-address = 127.0.0.1 # restrict to localhost; override for cluster
Key trade-offs:
innodb_flush_log_at_trx_commit=2 improves throughput ~5-10x but risks up to 1s data loss on OS crash — replicas onlyinnodb_dedicated_server=ON (8.0.30+): auto-sizes buffer pool and redo log — dedicated servers onlyExtended guidance for mysql-administration was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. GTID-Based Replication Setup3. InnoDB Cluster (MySQL 8 AdminAPI)4. Group Replication vs Async Replication5. User Security Model — Principle of Least Privilege6. Network Security7. Audit Logging8. Backup Strategy9. Point-in-Time Recovery (PITR)10. Monitoring Queries (Performance Schema)11. Table Maintenance12. Schema Changes in Production13. Connection Poolingdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...