1.查看mysql的端口号:
show global variables like 'port';
2.查看mysql的连接数:
show processlist;
3.查看mysql全部的连接数:
show full processlist;
4.查看最大的连接数:
show variables like '%max_connections%';
5.修改最大连接数:
set global max_connections =151;
6.查看mysql中的所有变量:
show varables;
7.查看mysql中的变量也可进行模糊查询:
show variables like 'default%';