show processlist host 为 百分号(%)
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,今天用户报出来一个问题:show full processlist;时出现下面的情况:|| 46977247 | common | % | common | Connect | 391 | updat
千家信息网最后更新 2026年11月02日show processlist host 为 百分号(%)今天用户报出来一个问题:
show full processlist;时出现下面的情况:
|
| 46977247 | common | % | common | Connect | 391 | updating |
| 46977311 | common | % | common | Connect | 331 | updating |
| 46977312 | common | % | common | Connect | 330 | updating |
| 46977406 | common | % | common | Connect | 237 | updating |
| 46977413 | common | % | common | Connect | 231 | updating |
| 46977446 | common | % | common | Connect | 201 | updating |
| 46977459 | common | % | common | Connect | 189 | updating |
| 46977462 | common | % | common | Connect | 186 | updating |
| 46977477 | common | % | common | Connect | 171 | updating |
| 46977489 | common | % | common | Connect | 159 | updating |
| 46977490 | common | % | common | Connect | 158 | updating |
| 46977493 | common | % | common | Connect | 155 | updating |
| 46977496 | common | % | common | Connect | 152 | updating |
| 46977511 | common | % | common | Connect | 137 | updating |
| 46977519 | common | % | common | Connect | 129 | updating |
| 46977523 | common | % | common | Connect | 125 | updating |
| 46977526 | common | % | common | Connect | 123 | updating |
| 46977530 | common | % | common | Connect | 119 | updating |
| 46977532 | common | % | common | Connect | 117 | updating |
| 46977533 | common | % | common | Connect | 116 | updating |
| 46977537 | common | % | common | Connect | 113 | updating
host那一列显示的只是一个 %号,没有显示ip地址。
这看起来有点不应该。 想了一下原因:没有想到,网上也不没有找到答案。
灵感出现在一瞬间:
使用下面的方式模拟:
delimiter ;;
CREATE DEFINER=`root`@`%` PROCEDURE `insert_pro`()
begin
DECLARE counter INT DEFAULT 0;
insert_loop: loop
set counter=counter+1;
insert into test values (counter,counter,counter);
if counter=10000 then
leave insert_loop;
end if;
end loop insert_loop;
end
;;
CREATE EVENT IF NOT EXISTS e_test
ON SCHEDULE EVERY 10 SECOND
ON COMPLETION PRESERVE
DO CALL test.insert_pro();
然后去show full processlist;
mysql> show full processlist;
+----+-----------------+-----------------+------+---------+------+-----------------------------+----------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+-----------------+-----------------+------+---------+------+-----------------------------+----------------------------------------------------+
| 1 | event_scheduler | localhost | NULL | Daemon | 2 | Waiting for next activation | NULL |
| 64 | root | localhost:34176 | test | Sleep | 52 | | NULL |
| 65 | root | localhost:34177 | NULL | Query | 0 | System lock | show full processlist |
| 74 | root | % | test | Connect | 0 | query end | insert into test values (counter,counter,counter) |
| 75 | root | % | test | Connect | 0 | query end | insert into test values (counter,counter,counter) |
+----+-----------------+-----------------+------+---------+------+-----------------------------+----------------------------------------------------+
5 rows in set (0.00 sec)
可以模拟出这种情况。
其实就是event调用的结果。
转载请注明源出处
QQ 273002188 欢迎一起学习
QQ 群 236941212
oracle,mysql,mongo 相互交流
show full processlist;时出现下面的情况:
|
| 46977247 | common | % | common | Connect | 391 | updating |
| 46977311 | common | % | common | Connect | 331 | updating |
| 46977312 | common | % | common | Connect | 330 | updating |
| 46977406 | common | % | common | Connect | 237 | updating |
| 46977413 | common | % | common | Connect | 231 | updating |
| 46977446 | common | % | common | Connect | 201 | updating |
| 46977459 | common | % | common | Connect | 189 | updating |
| 46977462 | common | % | common | Connect | 186 | updating |
| 46977477 | common | % | common | Connect | 171 | updating |
| 46977489 | common | % | common | Connect | 159 | updating |
| 46977490 | common | % | common | Connect | 158 | updating |
| 46977493 | common | % | common | Connect | 155 | updating |
| 46977496 | common | % | common | Connect | 152 | updating |
| 46977511 | common | % | common | Connect | 137 | updating |
| 46977519 | common | % | common | Connect | 129 | updating |
| 46977523 | common | % | common | Connect | 125 | updating |
| 46977526 | common | % | common | Connect | 123 | updating |
| 46977530 | common | % | common | Connect | 119 | updating |
| 46977532 | common | % | common | Connect | 117 | updating |
| 46977533 | common | % | common | Connect | 116 | updating |
| 46977537 | common | % | common | Connect | 113 | updating
host那一列显示的只是一个 %号,没有显示ip地址。
这看起来有点不应该。 想了一下原因:没有想到,网上也不没有找到答案。
灵感出现在一瞬间:
使用下面的方式模拟:
delimiter ;;
CREATE DEFINER=`root`@`%` PROCEDURE `insert_pro`()
begin
DECLARE counter INT DEFAULT 0;
insert_loop: loop
set counter=counter+1;
insert into test values (counter,counter,counter);
if counter=10000 then
leave insert_loop;
end if;
end loop insert_loop;
end
;;
CREATE EVENT IF NOT EXISTS e_test
ON SCHEDULE EVERY 10 SECOND
ON COMPLETION PRESERVE
DO CALL test.insert_pro();
然后去show full processlist;
mysql> show full processlist;
+----+-----------------+-----------------+------+---------+------+-----------------------------+----------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+-----------------+-----------------+------+---------+------+-----------------------------+----------------------------------------------------+
| 1 | event_scheduler | localhost | NULL | Daemon | 2 | Waiting for next activation | NULL |
| 64 | root | localhost:34176 | test | Sleep | 52 | | NULL |
| 65 | root | localhost:34177 | NULL | Query | 0 | System lock | show full processlist |
| 74 | root | % | test | Connect | 0 | query end | insert into test values (counter,counter,counter) |
| 75 | root | % | test | Connect | 0 | query end | insert into test values (counter,counter,counter) |
+----+-----------------+-----------------+------+---------+------+-----------------------------+----------------------------------------------------+
5 rows in set (0.00 sec)
可以模拟出这种情况。
其实就是event调用的结果。
转载请注明源出处
QQ 273002188 欢迎一起学习
QQ 群 236941212
oracle,mysql,mongo 相互交流
情况
面的
出处
原因
只是
地址
就是
方式
灵感
用户
答案
结果
问题
时出
现下
交流
学习
百分
百分号
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
保险科技 互联网保险
互联网科技工作委员会主任
互联网科技巨头监管
互联网 科技公司
猪兼强互联网科技
美国互联网前沿科技
新华互联网科技校企合作
顺网科技2021年互联网排名
中国最先进互联网科技公司
欧洲十大科技互联网公司
常德市电业局互联网科技部
中化能源互联网科技招聘
互联网5g黑科技有哪些
互联网第三次科技革命特征
互联网科技实习生岗位
广州千川互联网科技有限公司
互联网科技融合创新
互联网科技手抄报图片
互联网科技收购价值
优雇互联网科技有限公司
互联网高科技
科技和互联网公司
互联网科技与金融科技
互联网金融 科技
天速互联网络科技有限公司
成都铂石互联网科技做什么的
阿大互联网科技有限公司
乌鲁木齐新华智原互联网科技学校
上海科技产业互联网平台
领航科技大厦互联网公司