flush privileges;刷新缓存 SHOW FULL processlist;查看连接数据库的进程id,ip,用户名,连接的数据库,连接状态,连接时长等 show variables like ‘%max_connections%’;查看最大链接数 set global max_connections=1000;设置最大链接数 show global variables like ‘wait_timeout’;查看链接时长 set global wait_timeout=800;设置链接时长