查看mysql连接进程及连接用户
来源:互联网 发布:淘宝特卖商城天天特价 编辑:程序博客网 时间:2024/05/29 14:25
Find out who is doing what, and kill the process if needed.
mysql> show processlist;
show processlist;
+—–+——+———–+———+———+——-+——-+——————+
| Id | User | Host | db | Command | Time | State | Info |
+—–+——+———–+———+———+——-+——-+——————+
| 657 | prog | localhost | weather | Sleep | 28619 | | NULL |
| 782 | prog | localhost | weather | Sleep | 853 | | NULL |
| 785 | prog | localhost | NULL | Query | 0 | NULL | show processlist |
+—–+——+———–+———+———+——-+——-+——————+
3 rows in set (0.00 sec)
mysql>kill 657
Or, from the command line, to kill process 782
[root@third-fl-71 mysql]# mysqladmin processlist
+—–+——+———–+———+———+——+——-+——————+
| Id | User | Host | db | Command | Time | State | Info |
+—–+——+———–+———+———+——+——-+——————+
| 782 | prog | localhost | weather | Sleep | 2676 | | |
| 785 | prog | localhost | | Sleep | 1823 | | |
| 793 | root | localhost | | Query | 0 | | show processlist |
+—–+——+———–+———+———+——+——-+——————+
[root@third-fl-71 mysql]#
[root@third-fl-71 mysql]# mysqladmin kill 782
Note, the following can also be helpful
mysql> show status;
or
mysql> show status\G
also
mysql> show innodb status;
or
mysql> show table status like '%';
- 查看mysql连接进程及连接用户
- 查看mysql连接进程及连接用户
- Mysql 查看当前连接用户
- mysql查看当前正在连接的进程
- 登录mysql终端查看连接进程
- 查看oracle连接数及用户
- 查看及修改MYSQL最大连接数
- MySQL连接及基本信息查看命令小结
- MySQL 查看连接数及状态信息
- 查看oracle连接用户
- 查看mysql连接数
- 查看mysql 连接数
- MySQL查看连接数
- 查看Mysql连接数
- 查看mysql连接数
- MySQL用户连接常见问题
- oracle查看当前连接用户
- 查看用户的连接信息
- 图片按钮提交表单
- 15件事造就有理想的程序员
- mysql数据库操作
- 在win7系统中安装SQL2005出现29506错误码的解决方案
- C#开发串口总结,并提炼串口辅助类到公用类库中
- 查看mysql连接进程及连接用户
- SQL Server 2005无法远程连接的解决方法
- Delphi中打印条码的方法
- linux下进程间通信
- 淘宝网高性能可伸缩架构技术探秘
- 用汇编的眼光看C++(之算术符重载陷阱)
- SteveY对Amazon和Google平台的长篇大论
- 在xcode 4.2.1中使用skd 5.0 编译出在ios 4.3或者其他版本里面可以用的应用
- Django数据库操作笔记