Advertisement
Guest User

MySQL cheatsheet

a guest
Mar 2nd, 2022
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. ENGINE DATA INDEXES total
  2. ------ --------- --------- ------------
  3. InnoDB 891.73 GB 420.84 GB 1312.57 GB
  4. MyISAM 1.53 GB 1.24 GB 2.76 GB
  5. CSV 0.00 GB 0.00 GB 0.00 GB
  6. TOTALS (NULL) (NULL) (NULL)
  7. TOTALS 893.26 GB 422.07 GB 1315.33 GB
  8.  
  9.  
  10. Item Rate Suggestions
  11. ------------------------------------ -------- ------------------------------------------------------------------------------------
  12. Slow queries/sec 0.46 Find & optimise slow queries
  13. Unindexed queries/sec 2.38 Find & optimise unindexed queries
  14. Full table scans/sec 112.39 Find & optimise queries that do full table scans
  15. Total InnoDB load / buffer pool size 1.74 Increasing innodb_buffer_pool_size may improve performance
  16. InnoDB buffer pool inefficiency 0.00 Grow innodb_buffer_pool_size if > 2% or if innodb_buffer_pool_size < 70% of RAM
  17. InnoDB pages read and buffer pool 0.01 As above
  18. InnoDB log thrashing 0.04 Best near 0.5; if well under 0.5, grow innodb_log_file_size, shrink if much larger
  19. Est. best InnoDB log file size 32MB Average hour of writes rounded up to 32MB boundary
  20. Mins between InnoDB log rotation 34.48 Grow log size if < 30 min, shrink if > 60 min**
  21. Query cache hits/sec (NULL) If high, grow query_cache_size up to 50
  22. Query cache spills/sec 0.00 If < 5, try turning query cache off
  23. MyISAM buffer hit ratio 49.69 If < 10, grow key_buffer_size
  24. MyISAM key read rate 219.55 Should be high when the buffer is full
  25. MyISAM key write ratio 2.4 Much higher than 1 suggests a disk write bottleneck
  26. MyISAM query cache hits/inserts (NULL) If < 5, consider disabling the cache
  27. Temp tables created/sec 14.60 Grow tmp_table_size, max_heap_size. Use Heap tables in queries
  28. Database changes/connection (NULL) Use db.table syntax
  29. Processes/connection 0.00 If high, grow thread_cache_size
  30. Queries/sec 29289.68 Over 1K is busy: you may need better hardware
  31. Inserts/sec (NULL) Over 10K is busy, you may need better hardware
  32. Table scan next row seeks/sec 86453.90 If high, there are queries that need optimising, esp. with covering indexes
  33. InnoDB buffer reads/sec 1294.02 Over 1K is busy: you may need better hardware
  34. Files opened/sec 206.52 If > 5, increase table_open_cache
  35. Created tmp disk tables/sec 14.60 If > 1, check tmp_table_size, max_heap_table_size, Text/Blob query retrievals
  36. Created_tmp_disk_tables/Queries 0.00 If > 4%, check tmp_table_size, max_heap_table_size, Text/Blob query retrievals
  37. Max MySQL RAM use 8073.23 Must not be greater than RAM available to MySQL
  38.  
  39.  
  40. InnoDB IOPS BuffPoolSize BufferPoolPctFree BytesRead/s Reads/s Bytes/Read BytesWritten/s Writes/s Bytes/Write
  41. ----------- ------------ ----------------- ----------- ------- ---------- -------------- -------- -------------
  42. 2602.7 98.0GB 0.1 5 1157.8 214 711 278.4 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement