閱讀539 返回首頁    go 阿裏雲 go 技術社區[雲棲]


常用的mysql狀態查詢命令show status

show variables like 'max_connections'; 

show global status like 'max_used_connections';  

show global status like 'created_tmp%';  

show variables where Variable_name in ('tmp_table_size', 'max_heap_table_size');

show global status like 'open%tables%';  

show global status like 'Thread%';

show variables like 'thread_cache_size'; 

show global status like 'qcache%';  

show variables like 'query_cache%';  

show global status like 'sort%';  

show global status like 'open_files';  

show global status like 'table_locks%';  

show table status like ‘user'\G

最後更新:2017-11-12 18:04:50

  上一篇:go  alter用法及注意
  下一篇:go  mysql常用命令列表