Home Mysql Too_many_connections
Post
Cancel

Mysql Too_many_connections

refer to:
https://www.thegeekdiary.com/mysql-error-too-many-connections-and-how-to-resolve-it/

This error is caused by mysql, but not rails config.

check variable: max_connections:

SHOW VARIABLES LIKE 'max_connections';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 151   |
+-----------------+-------+

increase it : SET GLOBAL max_connections = 1024;

This post is licensed under CC BY 4.0 by the author.