FAQ — Collecting MySQL Diagnostic Data
All commands below are read-only unless explicitly stated. Safe to run on production systems.
✅ No writes · No locks · No performance impactSupported Technologies
- MySQL
- MariaDB
- Percona XtraDB Cluster
⚡ Quick Checklist
Collect pt-summary — server-level info
OS access Safept-summary collects OS, hardware, kernel, and MySQL runtime metadata. It does not modify the system and is safe for production environments.
wget https://www.percona.com/get/pt-summary chmod +x pt-summary ./pt-summary > server_name_$(date +%d%m%y)_pt-summary.txt
- Does not modify the system
- Safe for production
- Requires OS (shell) access to the server
Collect pt-mysql-summary — MySQL config & schema
OS access Read-onlypt-mysql-summary collects MySQL version, configuration variables, storage engines, and schema & index metadata using standard SQL queries only.
wget https://www.percona.com/get/pt-mysql-summary chmod +x pt-mysql-summary ./pt-mysql-summary --user=advisor --password --host=localhost \ > server_name_$(date +%d%m%y)_pt-mysql-summary.txt
- Read-only — uses SELECT queries only
- Safe for production
- Replace
advisorwith your read-only username
Collect SHOW GLOBAL VARIABLES
SQL Read-onlyExports all MySQL server configuration variables to a file. This is required for the core analysis.
mysql -u advisor -p -e "SHOW GLOBAL VARIABLES" \ > server_name_$(date +%d%m%y)_global_variables.txt
- Paste the output into the SHOW VARIABLES tab in MySQL Advisor
- Or use the Collect data from MySQL panel to fetch it automatically
Collect SHOW GLOBAL STATUS
SQL Read-onlyExports runtime status counters — connections, InnoDB metrics, query cache hits, replication lag, etc. Run during normal workload hours for the most accurate analysis.
mysql -u advisor -p -e "SHOW GLOBAL STATUS" \ > server_name_$(date +%d%m%y)_global_status.txt
- Paste into the SHOW GLOBAL STATUS tab in MySQL Advisor
- Or use the Collect data from MySQL panel to fetch it automatically
Create a read-only MySQL user
SQLCreate a dedicated, minimal-privilege user for analysis. No INSERT, UPDATE, DELETE, or DDL permissions are granted.
CREATE USER 'advisor'@'%' IDENTIFIED BY 'StrongPasswordHere'; -- Core privileges GRANT SELECT, PROCESS, SHOW VIEW ON *.* TO 'advisor'@'%'; -- Optional: replication visibility GRANT REPLICATION CLIENT ON *.* TO 'advisor'@'%'; FLUSH PRIVILEGES;
| Privilege | Purpose |
|---|---|
| SELECT | Read metadata and configuration tables |
| PROCESS | View the process list for active queries |
| SHOW VIEW | Inspect view definitions |
| REPLICATION CLIENT | Check replication status (optional) |
Files to upload to MySQL Advisor
Upload or paste the following files into their respective tabs in MySQL Advisor.
Security & Privacy Notes
- No table data or row contents are collected
- No passwords appear in any output files
- Hostnames, IPs, and file paths may appear — review before sharing if required
- MySQL Advisor processes data server-side and never stores it
- No external network calls are made during analysis
⚠ Before sharing output files
- Review files for any IP addresses or hostnames you consider sensitive
- Schema names and table names may appear in pt-mysql-summary
- Redact as needed before uploading to a shared environment
Run these commands during normal workload hours for the most accurate analysis.