1.使用命令show variables 来查看当前最大连接数

show variables like '%max_connections%';

使用命令set global max_connections来设置最大连接数:

set global max_connections=1400;

使用命令show variables 来查看是否已经生效。如果显示数字为你所设置的新的值,说明生效。

  2.修改my.conf里面的max_connections为你希望的新数值,以使下次重启后生效。

推荐阅读:

【MySql】修改max_connections 参数的方法 

相关文章:

  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-05-18
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案