Computer/DataBase

MySQL Session(세션) 제한 늘리기(동시접속자수) 2

ywlee 2016. 3. 29. 19:37

출처 : http://www.electrictoolbox.com/update-max-connections-mysql/


The default setting for max_connections is 100. You can see what the current setting is by running the following SQL command from the MySQL command line toolphpMyAdmin, or a similar tool:

show variables like "max_connections";

This will return a resultset like this, showing you what your current max connections setting is:

+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 100   |
+-----------------+-------+

You can change the setting to e.g. 200 by issuing the following command without having to restart the MySQL server (obviously it will only work if the user you are logged in as has sufficient permissions to do this):

set global max_connections = 200;