Hvis du har brug for at øge MySQL-forbindelser uden MySQL genstart, gør som nedenfor
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)
Disse indstillinger ændres ved genstart af MySQL.
For permanente ændringer tilføj linjen under i my.cnf og genstart MySQL
max_connections = 150