<tfoot id='77YjQ'></tfoot>
    • <bdo id='77YjQ'></bdo><ul id='77YjQ'></ul>

      1. <small id='77YjQ'></small><noframes id='77YjQ'>

        <legend id='77YjQ'><style id='77YjQ'><dir id='77YjQ'><q id='77YjQ'></q></dir></style></legend>
        <i id='77YjQ'><tr id='77YjQ'><dt id='77YjQ'><q id='77YjQ'><span id='77YjQ'><b id='77YjQ'><form id='77YjQ'><ins id='77YjQ'></ins><ul id='77YjQ'></ul><sub id='77YjQ'></sub></form><legend id='77YjQ'></legend><bdo id='77YjQ'><pre id='77YjQ'><center id='77YjQ'></center></pre></bdo></b><th id='77YjQ'></th></span></q></dt></tr></i><div id='77YjQ'><tfoot id='77YjQ'></tfoot><dl id='77YjQ'><fieldset id='77YjQ'></fieldset></dl></div>

        如何增加 MySQL 连接数(max_connections)?

        时间:2023-06-02
          <tbody id='Fd5hU'></tbody>

      2. <small id='Fd5hU'></small><noframes id='Fd5hU'>

          1. <i id='Fd5hU'><tr id='Fd5hU'><dt id='Fd5hU'><q id='Fd5hU'><span id='Fd5hU'><b id='Fd5hU'><form id='Fd5hU'><ins id='Fd5hU'></ins><ul id='Fd5hU'></ul><sub id='Fd5hU'></sub></form><legend id='Fd5hU'></legend><bdo id='Fd5hU'><pre id='Fd5hU'><center id='Fd5hU'></center></pre></bdo></b><th id='Fd5hU'></th></span></q></dt></tr></i><div id='Fd5hU'><tfoot id='Fd5hU'></tfoot><dl id='Fd5hU'><fieldset id='Fd5hU'></fieldset></dl></div>

            <legend id='Fd5hU'><style id='Fd5hU'><dir id='Fd5hU'><q id='Fd5hU'></q></dir></style></legend>
          2. <tfoot id='Fd5hU'></tfoot>
              • <bdo id='Fd5hU'></bdo><ul id='Fd5hU'></ul>
                • 本文介绍了如何增加 MySQL 连接数(max_connections)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  MySQL 数据库的每个套接字的默认连接数为 100,但我正在寻找任何方法来增加可能的连接数 > 100 到 MySQL 数据库的套接字连接.

                  Every socket of MySQL Database will have defaults connections as 100 but I am looking for any way to increase the number of possible connections > 100 to a socket connection of MySQL Database.

                  推荐答案

                  如果你需要在不重启 MySQL 的情况下增加 MySQL 连接数,请执行以下操作

                  If you need to increase MySQL Connections without MySQL restart do like below

                  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)
                  

                  这些设置将在 MySQL 重启时更改.

                  These settings will change at MySQL Restart.

                  对于永久性更改,在 my.cnf 中添加以下行并重新启动 MySQL

                  For permanent changes add below line in my.cnf and restart MySQL

                  max_connections = 150
                  

                  这篇关于如何增加 MySQL 连接数(max_connections)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:我如何知道我的 docker mysql 容器何时启动并且 mysql 已准备好接受查询? 下一篇:使用索引,使用临时,使用文件排序 - 如何解决这个问题?

                  相关文章

                • <tfoot id='v55Kc'></tfoot>

                    <small id='v55Kc'></small><noframes id='v55Kc'>

                    <legend id='v55Kc'><style id='v55Kc'><dir id='v55Kc'><q id='v55Kc'></q></dir></style></legend>
                      <i id='v55Kc'><tr id='v55Kc'><dt id='v55Kc'><q id='v55Kc'><span id='v55Kc'><b id='v55Kc'><form id='v55Kc'><ins id='v55Kc'></ins><ul id='v55Kc'></ul><sub id='v55Kc'></sub></form><legend id='v55Kc'></legend><bdo id='v55Kc'><pre id='v55Kc'><center id='v55Kc'></center></pre></bdo></b><th id='v55Kc'></th></span></q></dt></tr></i><div id='v55Kc'><tfoot id='v55Kc'></tfoot><dl id='v55Kc'><fieldset id='v55Kc'></fieldset></dl></div>

                        <bdo id='v55Kc'></bdo><ul id='v55Kc'></ul>