目录 MySQL配置文件my.ini或my.cnf的位置 show status 与show variables 区别 1、show status 2、show variables 根据status状态对Mysql数据库进行优化: 1、连接数 1.1 show variables like ‘max_connections’; 1.2、 show global status like ‘Max_used_connections’; 1.3、设置最大连接数值方法: mysqld服务器维护两种变量: 全局变量影响服务器的全局操作。 会话变量影响具体客户端连接