Wenn Sie die MySQL-Verbindungen ohne MySQL-Neustart erhöhen müssen, gehen Sie wie unten beschrieben vor
mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 100 |
+-----------------+-------+
1 row in set (0.00 sec)
mysql> SET GLOBAL max_connections = 150;
Query OK, 0 rows affected (0.00 sec)
mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 150 |
+-----------------+-------+
1 row in set (0.00 sec)
Diese Einstellungen ändern sich beim MySQL-Neustart.
Für dauerhafte Änderungen fügen Sie die folgende Zeile in my.cnf hinzu und starten Sie MySQL neu
max_connections = 150