博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
查看MySQL数据的连接
阅读量:6852 次
发布时间:2019-06-26

本文共 348 字,大约阅读时间需要 1 分钟。

 
show processlist;
 
select host from information_schema.processlist;
 
查看那台机器及连接数
select host, current_connections from sys.host_summary;
(sys.host_summary此视图在5.7以及之后版本才有)
 
 
select substring_index(host,":",1),count(*) as conn from information_schema.processlist group by substring_index(host,":",1);

 

转载于:https://www.cnblogs.com/liang545621/p/9400086.html

你可能感兴趣的文章
The Zip, GZip, BZip2 and Tar Implementation For .NET
查看>>
BZOJ4521:[CQOI2016]手机号码(数位DP)
查看>>
C/C++ rand()产生随机数 模拟 掷骰子 小游戏代码
查看>>
openfire 访问 user service 插件 访问不到
查看>>
linux 下 easy_install 安装
查看>>
生成唯一编码
查看>>
C# Directory.GetFiles()获取文件时如果是根目录时有隐藏文件则报错的处理
查看>>
POJ 3320 (尺取法+Hash)
查看>>
名校公开课网站汇总
查看>>
CodeForces 620E New Year Tree
查看>>
ZOJ 2059 The Twin Towers
查看>>
阿里云系列——5.网站云解析快速配置(简单+免费+详细+最新)
查看>>
python简单爬虫爬取百度百科python词条网页
查看>>
分享git的常用命令
查看>>
《代码大全》阅读笔记-13-不常见的数据类型
查看>>
写给精明Java开发者的测试技巧
查看>>
excel表格快捷键
查看>>
Robot Framework自动化测试Selenium2Library库详细用法
查看>>
多线程间通信之AutoResetEvent和ManualResetEvent的原理分析和开发示例
查看>>
C#中 @ 的3种用途
查看>>