博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
show processlist
阅读量:5754 次
发布时间:2019-06-18

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

mysql> show processlist; #mysql服务器查看有那些主机连进来,并列出它们查什么库+-----+------+-----------+------+---------+------+-------+------------------+| Id  | User | Host      | db   | Command | Time | State | Info             |+-----+------+-----------+------+---------+------+-------+------------------+| 516 | root | localhost | NULL | Query   |    0 | NULL  | show processlist |+-----+------+-----------+------+---------+------+-------+------------------+1 row in set (0.00 sec)

 

[root@bass ~]# ssh 192.168.1.89reverse mapping checking getaddrinfo for bogon [192.168.1.89] failed - POSSIBLE BREAK-IN ATTEMPT!root@192.168.1.89's password: Last login: Sun May  8 04:57:24 2016 from 192.168.1.10[root@v01 ~]# mysql -usx -p -h101.200.xx.xxEnter password: Welcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 517Server version: 5.5.40-log MySQL Community Server (GPL)Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;+--------------------+| Database           |+--------------------+| information_schema || sx                 || test               |+--------------------+3 rows in set (0.01 sec)

 

mysql> show processlist;+-----+------+----------------------+------+---------+------+-------+------------------+| Id  | User | Host                 | db   | Command | Time | State | Info             |+-----+------+----------------------+------+---------+------+-------+------------------+| 516 | root | localhost            | NULL | Query   |    0 | NULL  | show processlist || 517 | sx   | 118.194.xxx.xxx:xxx | NULL | Sleep   |   28 |       | NULL             |+-----+------+----------------------+------+---------+------+-------+------------------+2 rows in set (0.00 sec)

 

mysql> use mysql;Database changedmysql> show tables;+---------------------------+| Tables_in_mysql           |+---------------------------+| columns_priv              || db                        || event                     || func                      || general_log               || help_category             || help_keyword              || help_relation             || help_topic                || host                      || ndb_binlog_index          || plugin                    || proc                      || procs_priv                || proxies_priv              || servers                   || slow_log                  || tables_priv               || time_zone                 || time_zone_leap_second     || time_zone_name            || time_zone_transition      || time_zone_transition_type || user                      |+---------------------------+24 rows in set (0.01 sec)mysql> show processlist;+-----+------+----------------------+-------+---------+------+-------+------------------+| Id  | User | Host                 | db    | Command | Time | State | Info             |+-----+------+----------------------+-------+---------+------+-------+------------------+| 516 | root | localhost            | mysql | Query   |    0 | NULL  | show processlist || 517 | sx   | 118.194.xxx.xxx:2373 | NULL  | Sleep   |  297 |       | NULL             |+-----+------+----------------------+-------+---------+------+-------+------------------+2 rows in set (0.00 sec)

 

转载地址:http://yvckx.baihongyu.com/

你可能感兴趣的文章
【学习Android NDK开发】搭建Android SDK开发环境(Ubuntu 12.04 LTS 32-bit)
查看>>
Microsoft Visual Studio Community 2017 修改新建项目的默认位置
查看>>
什么是代码
查看>>
Python简介
查看>>
iOS - UIImageView
查看>>
css控制网页所有图片当图片大于指定宽度图片等于指定宽度
查看>>
【转载】Deep Belief Network
查看>>
[程序人生]: 儿童涂鸦
查看>>
Cassandra索引详解
查看>>
字节、字、bit、byte的关系
查看>>
第一篇文章,没有什么,只是测试一下
查看>>
VMware12安装虚拟机教程、Ubuntu16.04安装教程(包括vmware tools的安装)
查看>>
Ubuntu Kylin14.04下PHP环境的搭建(LAMP)
查看>>
Notepad++ 快捷键大全
查看>>
JETSON TK1~Ubuntu14.04 Armhf源更新
查看>>
ASP.NET MVC Model验证(四)
查看>>
学习boost::asio http-server2笔记
查看>>
内部类、代码块
查看>>
cogs——1298. 通讯问题
查看>>
python selenium 开发环境配置
查看>>