There are many MySQL variables, some of which are worthy of our attention. Here we will introduce some MySQL variables that are worth our focus for your reference. 1 Threads_connected First of all, you need to note that if you want to get the value of this variable, you cannot show variables like 'Threads_connected'; instead Meaning: The value of the variable indicates how many clients are currently connected to the MySQL server Extension: Is there too many connections? There may be a problem with the network! Especially in the case of pconnect :) 2 Created_tmp_disk_tables Meaning: The number of temporary tables created on the hard disk Extension: If this value is large, the operation of creating a temporary table (CREATE TEMPORARY TABLE) during query will take more time. 3 Handler_read_first Meaning: Read the first row of the table index Extension: If this value changes greatly, it can be considered that there is a problem with the table index establishment, and there are more full index scan operations. 4 Innodb_buffer_pool_wait_free Meaning: This variable indicates the number of times MySQL has to wait for memory pages to be flushed Extension:If this variable is high, it suggests that MySQL's memory buffer is incorrectly configured for the amount of writes the server is currently performing. Didn't understand this :) 5 Key_reads Meaning: The number of times the index on the file system is read Extension: If this value is too large, you need to consider whether the key cache settings are normal. 6 Max_used_connections Meaning: The maximum number of connections since the restart Extension: Server load and number of connections that may need to be adjusted 7 Open_tables Meaning: The number of currently open tables Extension: If this value is very low and the table cache is very large, then reducing the table cache setting is no problem. If this value is very large and close to the table cache value, we need to increase the table cache setting. 8 Select_full_join Meaning: Number of fully connected queries Extension: The value is too large, and more indexes need to be created to avoid 9 Slow_queries Meaning: Number of slow queries Extension: If it is too large, you should check the slow query log and check whether the SQL statement is written properly. 10 Uptime Meaning: running time, in seconds Summarize The above is all the content of this article about several important MySQL variables. I hope it will be helpful to everyone. Interested friends can refer to: Detailed Explanation of MySQL prepare principles, Analysis of key points of ORACLE SQL statement optimization technology, etc. If you have any questions, you can leave a message at any time and the editor will reply to you in time. You may also be interested in:
|
<<: How to view Docker container application logs
>>: How to make a List in CocosCreator
Flex layout is also called elastic layout. Any co...
About the tree display of Vue, the project is use...
This article aims to use the clearest structure t...
Table of contents Introduction to Samba Server Sa...
8 optimization methods for MySQL database design,...
1. <dl> defines a list, <dt> defines ...
In the past few years, I have been moving back an...
In the past, float was often used for layout, but...
In web page production, input and img are often pl...
Table of contents Scope Global Scope Function Sco...
To do MySQL performance adjustment and service st...
An at-rule is a declaration that provides instruc...
<br />This example mainly studies two parame...
MongoDB is cross-platform and can be installed on...
Organize the MySQL 5.5 installation and configura...