zf-crazy

//查看mysql连接进程列表
show full processlist;
//查看连接数
show variables like \'%max_connections%\';
show global status like \'Max_used_connections\';

//查看进程休息多少秒后清除连接
show global variables like \'wait_timeout\';

//设置禁触休息多少秒后清除连接
set global wait_timeout=10000;
set global interactive_timeout=300;


//group_concat 连接超过长度设置,默认是1024字节
SET GLOBAL group_concat_max_len = 102400;

SET SESSION group_concat_max_len = 102400;

//查看concat字节数
show variables like "%concat%";

 

MySQL 8 之后,
变量名修改为:tx_isolation => transaction_isolation 
就需要使用:show variables like \'transaction_isolation\'; 
更新语句:set global transaction_isolation = \'READ-COMMITTED\'; 
要不会报错提示找不到全部变量tx_isolation

分类:

技术点:

相关文章:

  • 2021-11-26
  • 2022-02-13
  • 2021-09-27
  • 2021-12-15
  • 2022-03-08
  • 2021-09-16
  • 2021-10-21
  • 2022-02-02
猜你喜欢
  • 2021-11-27
  • 2021-05-01
  • 2021-11-27
  • 2021-11-24
  • 2021-08-05
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案