List-1 大体意思是MySQL允许的最大连接
mysql> select * from global_variables where variable_name like "max_connections";
+-----------------+----------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+-----------------+----------------+
| max_connections | 600 |
+-----------------+----------------+
1 row in set (0.00 sec)List-2 大体意思是一个用户连接到数据库的最大连接数,为0应该是表示不限制,设置这个变量的值可以防止一个用户用完所有数据库允许的最大连接。
mysql> select * from global_variables where variable_name like "max_user_connections";
+----------------------+----------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+----------------------+----------------+
| max_user_connections | 0 |
+----------------------+----------------+
1 row in set (0.00 sec)List-3
mysql> select * from global_variables where variable_name like "max_connect_errors";
+--------------------+----------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+--------------------+----------------+
| max_connect_errors | 100 |
+--------------------+----------------+
1 row in set (0.01 sec)此值为100时,意味着如果某一客户端尝试连接此MySQL服务器,但是失败(如密码错误等等)100次,则MySQL会无条件强制阻止此客户端连接。
(adsbygoogle = window.adsbygoogle || []).push({});