Thả tập tin vào đây

SQL upload ( 0 ) x -

Cài đặt liên quan đến trang Bấm vào thanh để cuộn lên đỉnh trang
Nhấn Ctrl+Enter để thực thi truy vấn Nhấn Enter để thực thi truy vấn
tăng dần
giảm dần
Thứ tự:
Gỡ rối SQL
Số lượng
Thứ tự thực thi
Thời gian cần
Xếp theo:
Nhóm truy vấn
Bỏ nhóm các truy vấn
Co lại Mở rộng Hiện theo dõi Ẩn theo dõi Số lượng : Thời gian cần :
Đánh dấu
Làm tươi lại
Thêm
Không có đánh dấu nào
Thêm đánh dấu
Tùy chọn
Đặt lại thành mặc định





Co lại Mở rộng Truy vấn lại Sửa Giải thích Hồ sơ Đánh dấu Truy vấn bị lỗi Cơ sở dữ liệu : Thời gian truy vấn :

Hệ thống cố vấn

Các thu thập hiệu năng có thể được

Issue:
long_query_time is set to 10 seconds or more, thus only slow queries that take above 10 seconds are logged.
Recommendation:
It is suggested to set long_query_time to a lower value, depending on your environment. Usually a value of 1-5 seconds is suggested.
Justification:
long_query_time hiện được đặt thành 10s.
Used variable / formula:
long_query_time
Test:
value >= 10
Issue:
Tính năng hiển thị nhật ký truy vấn bị tắt.
Recommendation:
Enable slow query logging by setting slow_query_log to 'ON'. This will help troubleshooting badly performing queries.
Justification:
slow_query_log được đặt thành “OFF”
Used variable / formula:
slow_query_log
Test:
value == 'OFF'
Issue:
Phiên bản biên dịch từ mã nguồn, không phải MySQL dạng nhị phân chính thức.
Recommendation:
If you did not compile from source, you may be using a package modified by a distribution. The MySQL manual only is accurate for official MySQL binaries, not any package distributions (such as RedHat, Debian/Ubuntu etc).
Justification:
Tìm thấy “source” trong version_comment
Used variable / formula:
version_comment
Test:
preg_match('/source/i',value)
Issue:
Có nhiều hàng được sắp xếp
Recommendation:
While there is nothing wrong with a high amount of row sorting, you might want to make sure that the queries which require a lot of sorting use indexed columns in the ORDER BY clause, as this will result in much faster sorting.
Justification:
Sorted rows average: 1.34 mỗi giây
Used variable / formula:
Sort_rows / Uptime
Test:
value * 60 >= 1
Issue:
Có quá nhiều phép gia nhập mà không dùng chỉ mục.
Recommendation:
This means that joins are doing full table scans. Adding indexes for the columns being used in the join conditions will greatly speed up table joins.
Justification:
Table joins average: 1.76 mỗi giây, this value should be less than 1 per hour
Used variable / formula:
(Select_range_check + Select_scan + Select_full_join) / Uptime
Test:
value * 60 * 60 > 1
Issue:
Tỷ lệ đọc mục chỉ mục đầu tiên là cao.
Recommendation:
This usually indicates frequent full index scans. Full index scans are faster than table scans but require lots of CPU cycles in big tables, if those tables that have or had high volumes of UPDATEs and DELETEs, running 'OPTIMIZE TABLE' might reduce the amount of and/or speed up full index scans. Other than that full index scans can only be reduced by rewriting queries.
Justification:
Index scans average: 3.51 mỗi phút, this value should be less than 1 per hour
Used variable / formula:
Handler_read_first / Uptime
Test:
value * 60 * 60 > 1
Issue:
Tỷ lệ đọc dữ liệu tại vị trí cố định là cao.
Recommendation:
This indicates that many queries need to sort results and/or do a full table scan, including join queries that do not use indexes. Add indexes where applicable.
Justification:
Rate of reading fixed position average: 1.33 mỗi giây, this value should be less than 1 per hour
Used variable / formula:
Handler_read_rnd / Uptime
Test:
value * 60 * 60 > 1
Issue:
Tỷ lệ đọc hàng kế tiếp của bảng là cao.
Recommendation:
This indicates that many queries are doing full table scans. Add indexes where applicable.
Justification:
Rate of reading next table row: 39.02 mỗi giây, this value should be less than 1 per hour
Used variable / formula:
Handler_read_rnd_next / Uptime
Test:
value * 60 * 60 > 1
Issue:
Many temporary tables are being written to disk instead of being kept in memory.
Recommendation:
Increasing max_heap_table_size and tmp_table_size might help. However some temporary tables are always being written to disk, independent of the value of these variables. To eliminate these you will have to rewrite your queries to avoid those conditions (Within a temporary table: Presence of a BLOB or TEXT column or presence of a column bigger than 512 bytes) as mentioned in the MySQL Documentation
Justification:
Rate of temporary tables being written to disk: 20.4 mỗi phút, this value should be less than 1 per hour
Used variable / formula:
Created_tmp_disk_tables / Uptime
Test:
value * 60 * 60 > 1
Issue:
MyISAM key buffer (index cache) % used is low.
Recommendation:
You may need to decrease the size of key_buffer_size, re-examine your tables to see if indexes have been removed, or examine queries and expectations about what indexes are being used.
Justification:
max % MyISAM key buffer ever used: 0%, this value should be above 95%
Used variable / formula:
Key_blocks_used * key_cache_block_size / key_buffer_size * 100
Test:
value < 95
Issue:
Tốc độ mở các bảng cao.
Recommendation:
Opening tables requires disk I/O which is costly. Increasing table_open_cache might avoid this.
Justification:
Opened table rate: 11.2 mỗi phút, this value should be less than 10 per hour
Used variable / formula:
Opened_tables / Uptime
Test:
value*60*60 > 10
Issue:
Quá nhiều kết nối bị bãi bỏ.
Recommendation:
Connections are usually aborted when they cannot be authorized. This article might help you track down the source.
Justification:
Tỷ lệ của tất cả các kết nối bị bãi bỏ là 1.73 mỗi giờ, giá trị này nên dưới một lần mỗi giờ
Used variable / formula:
Aborted_connects / Uptime
Test:
value * 60 * 60 > 1
Issue:
Quá nhiều ứng dụng khách bị bãi bỏ
Recommendation:
Clients are usually aborted when they did not close their connection to MySQL properly. This can be due to network issues or code not closing a database handler properly. Check your network and code.
Justification:
Tỷ lệ của tất cả các máy khách bị bãi bỏ là 6.51 mỗi giờ, giá trị này nên dưới một lần mỗi giờ
Used variable / formula:
Aborted_clients / Uptime
Test:
value * 60 * 60 > 1
Issue:
Bộ nhớ đệm truy vấn đã bị tắt.
Recommendation:
The query cache is known to greatly improve performance if configured correctly. Enable it by setting query_cache_size to a 2 digit MiB value and setting query_cache_type to 'ON'. Note: If you are using memcached, ignore this recommendation.
Justification:
query_cache_size được đặt thành 0 hoặc query_cache_type được đặt thành “OFF”
Used variable / formula:
query_cache_size
Test:
value == 0 || query_cache_type == 'OFF' || query_cache_type == '0'