Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18252

Can't decrease max_connections below 10

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.1.33, 10.2.15, 10.3.6, 10.3.10, 10.2.21, 10.3.12
    • N/A
    • Documentation, Server, Variables
    • None

    Description

      Setting max_connections to 1 is possible on MySQL 5.7 and 8.0, but doesn't work with recent versions of MariaDB. The documentation seems to indicate it should work as it gives the range from 1 to 100000.

      MariaDB [(none)]> SHOW GLOBAL VARIABLES LIKE 'max_connections';
      +-----------------+-------+
      | Variable_name   | Value |
      +-----------------+-------+
      | max_connections | 100   |
      +-----------------+-------+
      1 row in set (0.00 sec)
       
      MariaDB [(none)]> SET GLOBAL max_connections=1;
      Query OK, 0 rows affected, 1 warning (0.00 sec)
       
      MariaDB [(none)]> show warnings;
      +---------+------+------------------------------------------------+
      | Level   | Code | Message                                        |
      +---------+------+------------------------------------------------+
      | Warning | 1292 | Truncated incorrect max_connections value: '1' |
      +---------+------+------------------------------------------------+
      1 row in set (0.00 sec)
       
      MariaDB [(none)]> SHOW GLOBAL VARIABLES LIKE 'max_connections';
      +-----------------+-------+
      | Variable_name   | Value |
      +-----------------+-------+
      | max_connections | 10    |
      +-----------------+-------+
      1 row in set (0.00 sec)
      

      (I've tagged the specific versions I've tested, but it's obviously likely to affect other 10.2 and 10.3 versions as well.)

      Attachments

        Activity

          karll Karl Levik created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10101 ]
          elenst Elena Stepanova made changes -
          Component/s Documentation [ 10903 ]
          Fix Version/s N/A [ 14700 ]
          Affects Version/s 10.3.6 [ 23003 ]
          Affects Version/s 10.2.15 [ 23006 ]
          Affects Version/s 10.1.33 [ 22909 ]
          Assignee Ian Gilfillan [ greenman ]
          elenst Elena Stepanova made changes -
          Assignee Ian Gilfillan [ greenman ] Michael Widenius [ monty ]
          greenman Ian Gilfillan made changes -
          Resolution Fixed [ 1 ]
          Status Confirmed [ 10101 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 91723 ] MariaDB v4 [ 155524 ]

          People

            monty Michael Widenius
            karll Karl Levik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.