几条常用命令
1查看当前连接数、最大连接数
su - mysql
mysql -uroot -lllc*****l098
show status like 'Threads%';
show variables like 'max_connections';
2查询会话运行情况:
select * from information_schema.processlist where command <> 'Sleep';
3
查看从节点状态
su - mysql
mysql -uroot -pn***kkk
show slave status\G
4 mysql 官方文档地址5.7
MySQL 5.7 Reference Manual (oracle.com)