gpt4 book ai didi

mysql - 显示进程列表

转载 作者:太空宇宙 更新时间:2023-11-03 10:41:50 24 4
gpt4 key购买 nike

当我运行命令 show processlist;我获得了与服务器建立的连接的详细信息。这是我的 MySQL 服务器的连接详细信息,

mysql> show processlist;
+------+-----------------+----------------------+-------------+---------+----------+------------------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+------+-----------------+----------------------+-------------+---------+----------+------------------------+------------------+
| 1 | event_scheduler | localhost | NULL | Daemon | 13200075 | Waiting on empty queue | NULL |
| 4212 | root | localhost | NULL | Query | 0 | init | show processlist |
| 4214 | root | xxx.xx.xxx.xxx:50197 | testmysqldb | Sleep | 1 | | NULL |
| 4215 | root | xxx.xx.xxx.xxx:50198 | testmysqldb | Sleep | 3 | | NULL |
+------+-----------------+----------------------+-------------+---------+----------+------------------------+------------------+

术语主机名和冒号 (:) 之后的“数字”是什么意思?它通常在建立远程连接时出现,在 Linux 上,甚至在 Windows 上的本地连接时也会出现。

提前致谢!!

最佳答案

这是用于连接的客户端端口号。

“xxx.xx.xxx.xxx:50197”表示 IP 地址“xxx.xx.xxx.xxx”和端口 50197 与您的 MySQL 服务器(可能在端口 3306 上)有一个打开的连接。

关于mysql - 显示进程列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37155665/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com