{"id":23014809,"url":"https://github.com/murdercode/maisquelle","last_synced_at":"2026-01-26T04:06:32.364Z","repository":{"id":268047040,"uuid":"880138229","full_name":"murdercode/maisquelle","owner":"murdercode","description":"🌽 Optimize your MySQL database configuration with AI","archived":false,"fork":false,"pushed_at":"2024-10-30T17:36:02.000Z","size":2652,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T13:43:35.571Z","etag":null,"topics":["mariadb","mysql","performance","sysadmin"],"latest_commit_sha":null,"homepage":"https://stefano9lli.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murdercode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-29T07:27:45.000Z","updated_at":"2024-11-07T04:56:47.000Z","dependencies_parsed_at":"2024-12-14T03:05:58.516Z","dependency_job_id":"b8ebe8ae-adab-4336-ba62-42b3550d64cd","html_url":"https://github.com/murdercode/maisquelle","commit_stats":null,"previous_names":["murdercode/maisquelle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/murdercode/maisquelle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murdercode%2Fmaisquelle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murdercode%2Fmaisquelle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murdercode%2Fmaisquelle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murdercode%2Fmaisquelle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murdercode","download_url":"https://codeload.github.com/murdercode/maisquelle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murdercode%2Fmaisquelle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mariadb","mysql","performance","sysadmin"],"created_at":"2024-12-15T11:09:53.437Z","updated_at":"2026-01-26T04:06:32.345Z","avatar_url":"https://github.com/murdercode.png","language":"Python","readme":"# MaisQuelle 🌽 Your AI-Powered MySQL companion\n\n**MaisQuelle** (_**M**ySQL **A**rtificial **I**ntelligence **S**ystem for **Q**uerying, **U**nderstanding, **E**\nvaluating, **L**earning and **L**og **E**nhancement_) is a smart configurator and performance monitoring tool that\ncombines the power of artificial intelligence with traditional monitoring techniques to keep your MySQL servers happy\nand healthy! 🎯\n\n\u003e ⚠️ WARNING: MaisQuelle is currently in an experimental phase and is NOT ready for production use!\n\nInspired by the versatility of [MySQLTuner](https://github.com/major/MySQLTuner-perl) and its essential role in MySQL\nadministration, MaisQuelle aims to bring that\nsame level of utility to performance monitoring and optimization, enhanced with AI capabilities.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/murdercode/maisquelle/raw/HEAD/art/demo.gif\" width=\"100%\" \nalt=\"MaisQuelle Animated Demo\"\u003e\u003c/p\u003e\n\n## Why MaisQuelle? 🤔\n\n- 🧠 AI-Enhanced Analysis: Uses machine learning algorithms to provide intelligent insights and recommendations for your\n  MySQL performance\n- 📊 Smart Reporting: Automatically generates human-readable reports with AI-driven explanations\n- 🎯 Predictive Monitoring: Identifies potential issues before they become problems\n- 🚀 Performance Optimization: Provides AI-powered suggestions for query optimization and system tuning\n- 🤖 Self-Learning: Continuously improves its recommendations based on your system's specific patterns\n\n## Requirements\n\n- Python 3.6+\n- MySQL Server 5.7+ or MariaDB 10.2+\n- [Anthropic API Key](https://www.anthropic.com/) (for AI-enhanced features)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/murdercode/maisquelle.git\n   cd maisquelle\n   ```\n\n2. Install required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Configure settings:\n    - Copy `settings.example.yaml` to `settings.yaml`\n    - Add your Anthropic API key and MySQL configuration in `settings.yaml`\n\n## Configuration\n\nMaisQuelle can be configured in two ways:\n\n1. Using `settings.yaml`:\n\n```yaml\nmysql:\n  host: localhost\n  user: root\n  password: \"\"\n  port: 3306\n\nmonitoring:\n  level: 2  # 1-Basic, 2-Advanced (default), 3-Expert\n  interval: 300\n\nanthropic:\n  api_key: \"your-api-key-here\"\n```\n\n2. Using command-line arguments (these override settings.yaml):\n\n```bash\n# Basic monitoring\npython maisquelle.py --level 1 --host localhost --port 3306\n\n# Advanced monitoring (default)\npython maisquelle.py --level 2 -u root -p password\n\n# Expert monitoring with all features\npython maisquelle.py --level 3 --enable-tables\n```\n\n### Available Arguments\n\n- `--level`: Monitoring detail level (1=Basic, 2=Advanced, 3=Expert)\n- `--host`: MySQL host address (default: localhost)\n- `-u, --user`: MySQL username (default: root)\n- `-p, --password`: MySQL password (default: empty)\n- `--port`: MySQL port number (default: 3306)\n- `--enable-tables`: Enable detailed table statistics collection\n\n## Monitoring Levels\n\n### Level 1: Basic Health Check 🟢\n\n- System resources (CPU, RAM, Disk)\n- MySQL service status\n- Basic MySQL metrics\n- Essential health indicators\n- Perfect for daily monitoring\n\n### Level 2: Advanced Analysis 🟡\n\nEverything in Level 1, plus:\n\n- Query cache analysis\n- InnoDB metrics\n- Slow query detection\n- Performance schema basics\n- Ideal for weekly performance reviews\n\n### Level 3: Expert Inspection 🔴\n\nEverything in Level 2, plus:\n\n- Detailed table statistics\n- Index analysis\n- Deep performance metrics\n- Complete schema inspection\n- Recommended for monthly deep analysis\n\n## Features\n\n### System Monitoring\n\n- CPU utilization and specifications\n- Memory usage (RAM and swap)\n- Disk space statistics\n\n### MySQL Monitoring\n\n- Service status and processes\n- Server variables and status\n- Query cache analysis\n- InnoDB metrics\n- Slow query analysis\n- Performance schema metrics\n- Table statistics (optional)\n\n### AI-Enhanced Features\n\n- Performance optimization recommendations based on monitoring level\n- Intelligent query analysis\n- Interactive command suggestions\n- Automated improvement execution\n- Level-specific insights and recommendations\n\n## Output\n\nReports are generated in the `logs` directory with timestamps:\n\n```\nlogs/status_YYYYMMDD_HHMMSS.txt\n```\n\n### Report Sections\n\n1. **Monitoring Level Information**\n    - Current level details\n    - Enabled features\n    - AI analysis depth\n\n2. **System Resources**\n    - CPU metrics\n    - Memory usage\n    - Disk statistics\n\n3. **MySQL Status**\n    - Process information\n    - Service status\n    - Server variables\n\n4. **Performance Metrics** (Level 2+)\n    - Query cache analysis\n    - InnoDB metrics\n    - Slow queries\n    - Performance schema data\n\n5. **Detailed Analytics** (Level 3)\n    - Table statistics\n    - Index analysis\n    - Deep performance metrics\n\n6. **AI Optimization**\n    - Level-specific recommendations\n    - Suggested improvements\n    - Execution results\n\n## Best Practices\n\n1. **Monitoring Level Selection**\n    - Use Level 1 for daily health checks\n    - Use Level 2 for weekly performance reviews\n    - Use Level 3 for monthly deep analysis\n    - Avoid Level 3 during peak hours\n\n2. **Configuration**\n    - Use `settings.yaml` for persistent configuration\n    - Override with CLI arguments when needed\n    - Configure appropriate permissions\n\n3. **Security**\n    - Store API keys securely\n    - Use encrypted connections\n    - Regularly rotate credentials\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Settings Loading**\n    - Ensure `settings.yaml` exists\n    - Check YAML syntax\n    - Verify file permissions\n\n2. **MySQL Connection**\n    - Confirm MySQL server is running\n    - Verify credentials\n    - Check port availability\n\n3. **AI Features**\n    - Validate Anthropic API key\n    - Check internet connectivity\n    - Monitor API rate limits\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Author\n\nYour Name\n\n- GitHub: [@murdercode](https://github.com/murdercode)\n- Email: murdercode@gmail.com","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurdercode%2Fmaisquelle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurdercode%2Fmaisquelle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurdercode%2Fmaisquelle/lists"}