<< All versions
Skill v1.0.0
currentAutomated scan100/100adityahimaone/hermes-agent-rtk-caveman/mysql-service-manager
──Details
PublishedOctober 21, 2026 at 08:15 AM
Content Hashsha256:77b6115c1a05535c...
Git SHA4e25d161cca0
──Files
Files (1 file, 2.7 KB)
SKILL.md2.7 KBactive
SKILL.md · 110 lines · 2.7 KB
version: "1.0.0" name: mysql-service-manager description: Manages MySQL services via Homebrew with RTK integration for token optimization. Provides easy start/stop/restart/status commands and monitoring capabilities. category: devops
MySQL Service Manager Skill
Manages MySQL services via Homebrew with RTK integration for token optimization. Provides easy start/stop/restart/status commands and monitoring capabilities.
When to Use
Use this skill when you need to:
- Start, stop, or restart MySQL@8.4 service via Homebrew
- Check service status and logs
- Set up monitoring for MySQL service
- Create easy-to-remember aliases for common MySQL operations
Prerequisites
- Homebrew installed (
which brewreturns a path) - MySQL@8.4 formula installed (
brew list | grep mysql@8.4) - RTK (Rust Token Killer) installed for token optimization
Commands
Start MySQL Service
bash
rtk brew services start mysql@8.4
Stop MySQL Service
bash
rtk brew services stop mysql@8.4
Restart MySQL Service
bash
rtk brew services restart mysql@8.4
Check Service Status
bash
rtk brew services list | grep mysql@8.4
View MySQL Service Logs
bash
rtk brew services info mysql@8.4
Easy Alias Commands (Add to shell profile)
Add these to your ~/.zshrc or ~/.bash_profile:
bash
# MySQL shortcuts with RTKalias mysql-start='rtk brew services start mysql@8.4'alias mysql-stop='rtk brew services stop mysql@8.4'alias mysql-restart='rtk brew services restart mysql@8.4'alias mysql-status='rtk brew services list | grep mysql@8.4'alias mysql-info='rtk brew services info mysql@8.4'
Monitoring & Health Checks
Basic Connection Test
bash
rtk mysqladmin -u root ping
Service Uptime Check
bash
rtk mysqladmin -u root version
Process List
bash
rtk mysqladmin -u root processlist
Troubleshooting
If Service Fails to Start
- Check logs:
rtk brew services info mysql@8.4 - Check configuration:
rtk cat $(brew --prefix)/etc/my.cnf - Check for port conflicts:
rtk lsof -i :3306 - Repair database:
rtk mysqlcheck -u root --all-databases --auto-repair
Common Issues
- Port already in use: Another service is using port 3306
- Permission issues: Data directory permissions incorrect
- Corrupted tables: Run mysqlcheck or restore from backup
Verification Steps
After running any command, verify success by:
- Checking service status shows "started"
- Testing connection with
rtk mysqladmin ping - Verifying no error messages in output
Examples
bash
# Start MySQL servicemysql-start# Check if it's runningmysql-status# View detailed infomysql-info# Restart after configuration changemysql-restart