阅读138 返回首页    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 17:34:12

  上一篇:go  常用mysql命令
  下一篇:go  快速定位不合理索引