Mysql connect the largest view, modify,

1, see the maximum amount of connections

show variables like '%max_connections%';

2, modify the maximum amount of connection

// End modification remember to restart

set GLOBAL max_connections = 32000;

3, show status like '% variable% below' View command

Command: show status;
command: show status like '% the following variables%'; 
Aborted_clients because the customer does not properly close the connection is dead, the number of connections has been abandoned. 
The number of connection attempts to the MySQL server has failed Aborted_connects's. 
The number of attempts to connect to the MySQL Server Connections. 
Created_tmp_tables when the statement is executed, has been created a number of implicit temporary tables. 
Delayed_insert_threads are using delay number of processor threads inserted. 
Delayed_writes with INSERT DELAYED rows written. 
Some error line number (probably duplicate key) occurs Delayed_errors written with INSERT DELAYED. 
Flush_commands executions FLUSH command. 
Handler_delete number of requests to delete rows from a table. 
Reading a first number of rows in the table Handler_read_first request. 
Handler_read_key requesting the digital key based on the read row. 
Handler_read_next a row based on the request of the read key. 
Handler_read_rnd request row based on a fixed position of the reading. 
Handler_update request updates the number of row in the table. 
Handler_write request line number is inserted into the table. 
Key_blocks_used number of keywords used for cache block. 
Key_read_requests number of requests to read a key block from the cache. 
Key_reads read a key block from the number of physical disks. 
Key_write_requests request a key block number write cache. 
Key_writes a key block to the number of physical disk write. 
Max_used_connections maximum number of connections simultaneously. 
Not_flushed_key_blocks has changed but not the key cache is emptied into the key blocks on the disk. 
Not_flushed_delayed_rows number of rows waiting to be written in INSERT DELAY queue. 
Open_tables number of open tables. 
Open_files number of open files. 
Open_streams number of open flow (mainly for logging) 
the Opened_tables number of tables has been opened. 
Questions number of queries sent to the server. 
Slow_queries to spend more than the number of queries long_query_time time. 
Threads_connected number of connections currently open. 
Threads_running number of threads that are not sleeping. 
Uptime server work out how much seconds.

 

Guess you like

Origin www.cnblogs.com/itxiaoxia/p/11454022.html