cli-execution-mastery
यह क्या करती है
यह स्किल बताती है कि MySQLTuner जाँच टूल को अलग-अलग डेटाबेस सेटअप पर कैसे चलाएँ। यह उन डेटाबेस एडमिन के लिए है जो चाहते हैं कि जाँच सुरक्षित तरीके से कनेक्ट हो।
कब इस्तेमाल करें
- ✓जब आपको लोकल, रिमोट या कंटेनर वाले डेटाबेस पर MySQLTuner चलाना हो।
- ✓जब आप डेटाबेस पासवर्ड कमांड लाइन से बाहर रखना चाहें।
- ✓जब आपको हेल्थ चेक रन के लिए शांत या विस्तृत आउटपुट चाहिए।
Skill का लिंक
https://github.com/major/MySQLTuner-perl/blob/master/.agent/skills/cli-execution-mastery/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे रिमोट MySQL सर्वर पर MySQLTuner चलाइए, बिना कमांड में पासवर्ड टाइप किए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके सेटअप के लिए सही कनेक्शन विकल्प चुनता है, जैसे socket, host या कंटेनर, और लॉगिन के लिए कमांड लाइन की बजाय सेटिंग फ़ाइल या environment variables इस्तेमाल करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
CLI Execution Mastery Skill
🧠 Rationale
Mastering the CLI options of mysqltuner.pl allows for seamless execution across diverse environments while maintaining security and leveraging existing configurations.
🛠️ Implementation
1. Connection Discovery & Targeting
| Target Type | Primary Command/Options |
|---|---|
| Local Socket | perl mysqltuner.pl (Default) | --socket=/path/to/mysql.sock |
| Remote Host | perl mysqltuner.pl --host=1.2.3.4 --port=3306 |
| Container | perl mysqltuner.pl --container=container_name_or_id |
| Cloud/Azure | perl mysqltuner.pl --cloud --azure |
2. Authentication Strategies
[!IMPORTANT] Avoid passing passwords directly via
--passon the command line to prevent exposure in process lists.
Preferred:
.my.cnfUsage- Use
--defaults-file=/path/to/.my.cnfto point to a specific configuration file. - The script automatically respects common paths if not specified.
- Use
Environment Variables
- Use
--userenv=MY_USER_VARand--passenv=MY_PASS_VARto leverage pre-set credentials.
- Use
Password Files
- Use
--passwordfile=/path/to/passwords.txtfor batch security auditing.
- Use
3. Execution Contexts
- Standard Verbose Run:
perl mysqltuner.pl --verbose(Recommended for full diagnostics). - Silent Mode:
perl mysqltuner.pl --silent(Useful for automated data collection). - JSON Output:
perl mysqltuner.pl --jsonor--prettyjson(For integration with other tools).
4. Debugging Connections
If connection fails, use these flags to diagnose:
--debug: Enables full debug output.--dbgpattern='.*': Filters debug information with regex.- Verify
mysqlcmdpath if custom binaries are used:--mysqlcmd=/usr/local/bin/mysql.
5. MariaDB InnoDB Variable Compatibility
As MariaDB evolves, several InnoDB system variables have been removed or deprecated. mysqltuner.pl detects these to avoid legacy configuration overhead.
| Parameter | Removed/Deprecated In | Note/Replacement |
|---|---|---|
have_innodb |
Removed 10.0 | Use SHOW ENGINES or I_S.PLUGINS. |
innodb_adaptive_flushing_method |
Removed 10.0 | Replaced by MySQL 5.6 flushing logic. |
innodb_checksums |
Removed 10.0 | Use innodb_checksum_algorithm. |
innodb_stats_sample_pages |
Removed 10.5.0 | Use innodb_stats_transient_sample_pages. |
innodb_file_format / _check / _max |
Removed 10.6.0 | Antelope and Barracuda are legacy concepts. |
innodb_large_prefix |
Removed 10.6.0 | Always enabled in newer versions. |
innodb_locks_unsafe_for_binlog |
Removed 10.6.0 | No longer supported. |
innodb_prefix_index_cluster_optimization |
Deprecated 10.10 | Always enabled now. |
6. MySQL InnoDB Variable Compatibility
| Parameter | Removed/Deprecated In | Note/Replacement |
|---|---|---|
innodb_locks_unsafe_for_binlog |
Removed 8.0 | Use READ COMMITTED isolation level instead. |
innodb_support_xa |
Removed 8.0 | XA support is now always enabled. |
innodb_file_format family |
Removed 8.0 | Barracuda is the only supported format. |
innodb_large_prefix |
Removed 8.0 | Always enabled for Barracuda. |
tx_isolation / tx_read_only |
Removed 8.0 | Use transaction_isolation / transaction_read_only. |
innodb_undo_logs |
Removed 8.0 | Replaced by innodb_rollback_segments. |
innodb_undo_tablespaces |
Removed 9.0 | Managed automatically now. |
innodb_log_file_size |
Removed 9.0 | Replaced by innodb_redo_log_capacity. |
innodb_api_... variables |
Removed 8.4 | Memcached-related variables removed. |
✅ Verification
- Run
perl mysqltuner.pl --helpto confirm availability of these options. - Use
execute_system_commandto test connectivity with specific flags in the target environment.
अक्सर पूछे जाने वाले सवाल
कमांड लाइन पर पासवर्ड टाइप करने से क्यों बचें?
कमांड लाइन के पासवर्ड चल रही प्रक्रियाओं की सूची में दिख सकते हैं, इसलिए स्किल सेटिंग फ़ाइल या environment variables पसंद करती है।
क्या यह क्लाउड डेटाबेस जाँच सकती है?
स्किल में क्लाउड और Azure के विकल्प शामिल हैं।
क्या कोई शांत आउटपुट विकल्प है?
हाँ। silent मोड स्वचालित संग्रह के लिए ठीक है, और verbose मोड पूरी जाँच की जानकारी देता है।
जानकारी
लेखक का मूल विवरण
Mastery of MySQLTuner CLI options for connection and authentication.
repo: major/MySQLTuner-perl
लोकप्रियता
- GitHub स्टार
- 9.5k
- रैंकिंग में स्थान
- #12277
- लाइसेंस
- GPL-3.0
- अपडेट की गई
- 28/10/2026
कमेंट
- …
इस repository की और skills
analyze_buffer_pool
9.5kआपके डेटाबेस एजेंट को जाँचने में मदद करती है कि MySQL या MariaDB अपनी InnoDB मेमोरी कैश का कितना अच्छा उपयोग करते हैं, डिस्क राइट में रुकावटें पहचानती है और buffer pool का सही आकार सुझाती है।
detect_fragmented_tables
9.5kआपके एजेंट को ऐसी डेटाबेस तालिकाएँ ढूँढने में मदद करती है जो फ़्रैगमेंटेशन के कारण डिस्क स्पेस बर्बाद करती हैं, और उसे सुरक्षित रूप से वापस पाने के तरीके सुझाती है, हर सफ़ाई सर्वर को कितना प्रभावित करती है, इसके नोट्स के साथ।
diagnose_replication_lag
9.5kआपके एजेंट को जाँचने में मदद करती है कि MySQL या MariaDB की replica अपने मुख्य सर्वर से पीछे रह गई है या नहीं, और कोई विफल replication thread और उसकी एरर खोजती है।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।