MySQL连接相关

官网:https://dev.mysql.com/doc/refman/8.0/en/performance-schema-processlist-table.html

 

 

 

interactive_timeout:交互式连接超时时间(mysql工具、mysqldump等)
wait_timeout:非交互式连接超时时间,默认的连接mysql api程序,jdbc连接数据库等

 

 

SHOW GLOBAL VARIABLES LIKE '%timeout%';


#查看所有连接
show full processlist;

#过滤所有连接
select * from information_schema.processlist where `db` like '%tiaobiao_cloud%';

 

posted @ 2022-08-15 13:34  Peter.Jones  阅读(15)  评论(0)    收藏  举报