show processlist host 为 百分号(%)
发表于:2025-11-11 作者:千家信息网编辑
千家信息网最后更新 2025年11月11日,今天用户报出来一个问题:show full processlist;时出现下面的情况:|| 46977247 | common | % | common | Connect | 391 | updat
千家信息网最后更新 2025年11月11日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安全错误
数据库的锁怎样保障安全
青少年网络安全如何预防
5g时代下网络安全
河北智能养老软件开发专业制作
雅虎服务器验证失败
5G这一全新网络技术
数据库实体 正在还原
软件开发是否应该抹杀个人创造性
高斯数据库空值如何查询
数据库表如何做
轩辕传奇不同服务器
森土网络技术
网络安全竞赛怎么参加
江苏常规软件开发现价
警校生网络安全教育心得体会
固态硬盘用在服务器上安全吗
财新网络安全平台
服务器无法连接端口有哪些原因
佰悦网络技术发展有限公司
网络安全科技股有哪些
网络安全跟it有什么区别
sql数据库用户名登录
大学生网络安全主题班会报告
邮箱解析带出服务器地址
网络安全有什么工作总结
思科网络安全协议
数据库怎么挺
web服务器架设与安全管理
软件开发企业的设计费用
战地一首页一进去就服务器中断
服务器大佬