性能测试MySQL中报: Too many connections

1.1查看mysql的最大连接数

mysql的最大连接数:
show variables like ‘%max_connections%’;
Mysql连接数设置

1.2查看当前连接数

show global status like ‘Max_used_connections’;
Mysql连接数设置

1.3设置MySQL最大连接数值

将最大连接数设为500
set GLOBAL max_connections=500;
Mysql连接数设置
再执行查看最大连接数命令,验证设置结果。

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2021-11-27
  • 2021-08-17
猜你喜欢
  • 2021-12-22
  • 2021-12-07
  • 2022-01-25
  • 2021-09-20
相关资源
相似解决方案