Analyze slow MySQL queries with pt-query-digest
![tuning-primer.sh result with parameter tmp_table_size, max_heap_table_size](https://www.mr2t.com/wp-content/uploads/2017/12/tuning-primer.sh-result-under-section-TEMP-TABLES.png)
tuning-primer.sh [TEMP TABLES]
เริ่มเรื่องจากการรัน tuning-primer.sh เพื่อดูการทำงาน/parameters ของ MySQL เป็นอย่างไรบ้าง ?
พบว่ามีข้อความสีแดงแจ้ง notice เรื่องการ create temporary tables on Disk ในสัดส่วนที่เยอะ หลังจากเพิ่ง restart MySQL ไปเพื่อ enable slow_query_log_file ประมาณ 5 นาทีได้ ตามรูป
ที่ใช้งานอยู่ยังเป็น… Read the rest