MySQL 查看最大连接数, 当期连接数.
发布时间:2020-12-12 02:09:10 所属栏目:MySql教程 来源:网络整理
导读:查看最大连接数 select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS'; 或者 show variables like '%max_connections%'; ? 查看当前连接数明细 show processlist; ? ? 设置最大连接数(一次性,重启mysql
查看最大连接数 select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS'; 或者 show variables like '%max_connections%'; ? 查看当前连接数明细 ? ? 设置最大连接数(一次性,重启mysql后还原) set global max_connections=200。 ? show status like 'Threads%'; ? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |