MySQL 查看命令

来源:互联网 发布:汽车行业人力数据 编辑:程序博客网 时间:2024/06/05 17:50
mysql 查看当前连接数
命令: show processlist; 
如果是root帐号,你能看到所有用户的当前连接。如果是其它普通帐号,只能看到自己占用的连接。 
show processlist;只列出前100条,如果想全列出请使用show full processlist; 


查看运行状态
命令: show status;
show status like 'Uptime';
show status like 'Com_grant';
show status like 'Connections';
show status like 'com_select';
show status like 'com_insert';
show status like 'com_update';
show status like 'com_delete';

查看参数配置
命令: show variables;


show variables like 'information_schema';
show variables like 'performance_schema';

0 0
原创粉丝点击