Set maximum number of connections in MySQL
MySQL sets maximum number of connections during installation, but sometimes we need to modify the value to meet our need.
Temporary measure
Restart the original settings after restarting MySQL.
1 | # Enter in the context of MySQL connection |
Permanent measure
Modify the configuration of MySQL.
Find the ‘my.ini’‘ file in MySQL directory.
Modify the value of ‘max_connections‘.
Restart the MySQL.