show variables like '%max_connections%';查看当前最大连接数

 

set global max_connections=1000重新设置最大连接数

 

可以在/etc/my.cnf里面设置数据库的最大连接数
 
[mysqld]
max_connections = 1000
 
 
show status like 'Threads%';  里面的threads_connected表示当前连接数,threads_running表示当前并发数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-11-23
  • 2022-02-25
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-11-23
  • 2021-09-24
相关资源
相似解决方案