คำสั่งตรวจสอบสถานะ
C:\mysql\bin> mysqladmin -u root status
ตัวอย่างผลลัพธ์
Uptime: 3865
Threads: 1
Questions: 50
Slow queries: 0
Opens: 113
Flush tables: 1
Open tables: 102
Queries per second avg: 0.012
ความหมายของแต่ละฟิลด์
| ฟิลด์ | ความหมาย |
| Uptime | เวลาทำงาน (วินาที)
| Threads | จำนวนการเชื่อมต่อปัจจุบัน |
| Questions | จำนวนคำสั่งที่ประมวลผล |
| Slow queries | คำสั่งที่เกิน long_query_time |
| Opens | จำนวนครั้งที่เปิดตาราง |
| Flush tables | จำนวนครั้ง flush table cache |
| Open tables | ตารางที่เปิดอยู่ |
| Queries per second avg | ค่าเฉลี่ย QPS |
ประโยชน์
- ตรวจสอบโหลดของเซิร์ฟเวอร์
- ดู Slow queries ว่ามีหรือไม่
- Monitor จำนวน Connection