mysql性能命令分析
发布时间:2023-08-23 15:30:52 所属栏目:MySql教程 来源:
导读:本文主要给大家介绍mysql性能命令解析,希望可以给大家补充和更新些知识,如有其它问题需要了解的可以持续在亿速云行业资讯里面关注我的更新文章的。
mysql性能命令:
列出所有用户的当前连接:
> show
mysql性能命令:
列出所有用户的当前连接:
> show
本文主要给大家介绍mysql性能命令解析,希望可以给大家补充和更新些知识,如有其它问题需要了解的可以持续在亿速云行业资讯里面关注我的更新文章的。 mysql性能命令: 列出所有用户的当前连接: > show processlist; (只显示前100行) > show full processlist; (显示所有连接) 查看所有mysql信息: > show status; 查看正在使用延迟插入处理器线程的数量: > show status like '%Delayed_insert_threads%'; 同时使用的连接的最大数量: > show status like '%max_used_connections%'; 打开表的数量: > show status like '%open_tables%'; 在队列中等待写入行的数量: > show status like '%not_flushed_delayed_rows%'; 已经打开表的数量: > show status like '%opened_tables%'; 发往云服务器查询的数量: > show status like '%questions%' 超过long_query_time时间的查询数量: > show status like '%slow_queries%'; 当前打开的连接数量: > show status like '%threads_connected%'; 不在睡眠的线程数量: > show status like '%threads_running%'; 服务器工作了多少秒: > show status like '%uptime%'; 查看表级锁争用情况(数值越大说明表级锁争用越严重): > show status like '%table_locks_waited%'; 当前正在等待锁定的数量: > show status like '%innodb_row_lock_current_waits%'; (编辑:聊城站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐