Mysql
 SQL >> Base de Dados >  >> RDS >> Mysql

Como Aumentar max_connections no MySQL

O erro “Too many connections” indica limite de conexões atingido.

Aplicação imediata

SET GLOBAL max_connections = 200;

Essa alteração se perde após reinício.

Permanente

Edite /etc/my.cnf:

[mysqld]
max_connections = 200

Depois reinicie o MySQL. Dimensione conforme a memória disponível.