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

my_print_defaults is not taking all the values when using -e option which is called from mysql.server (extra_args).

Details

    Description

      It is reported by one of our customers the my_print_defaults -e option is not working with MariaDB server 10.5

      Here are the test results:

      At MariaDB server 10.4.17, my_print_defaults -e giving the required output. Whereas at MariaDB server 10.5.x, -e option is not working instead has to specify --defaults-extra-file (alias).

      /root/my.cnf

      [mariadb-10.4]
      key_buffer_size=20M
      max_allowed_packet=250M
      table_open_cache=1000
      table_definition_cache=2000
      read_buffer_size=1M
      thread_cache_size=8
      max_connections=1024
      long_query_time=60
      slow_query_log=1
      

      [root@test001 ~]# mysql --version
      mysql  Ver 15.1 Distrib 10.4.17-MariaDB, for Linux (x86_64) using readline 5.1
       
      [root@test001 ~]# my_print_defaults -e /root/my.cnf --mysqld mysql.server
      --key_buffer_size=20M
      --max_allowed_packet=250M
      --table_open_cache=1000
      --table_definition_cache=2000
      --read_buffer_size=1M
      --thread_cache_size=8
      --max_connections=1024
      --long_query_time=60
      --slow_query_log=1
      

      /root/my.cnf

      [mariadb-10.5]
      key_buffer_size=20M
      max_allowed_packet=250M
      table_open_cache=1000
      table_definition_cache=2000
      read_buffer_size=1M
      thread_cache_size=8
      max_connections=1024
      long_query_time=60
      slow_query_log=1
      

      [root@test001 ~]# mysql --version
      mysql  Ver 15.1 Distrib 10.5.8-MariaDB, for Linux (x86_64) using readline 5.1
      [root@test001 ~]#
      [root@test001 ~]# my_print_defaults -e /root/my.cnf --mysqld mysql.server
      [root@test001 ~]# my_print_defaults --defaults-extra-file=/root/my.cnf --mysqld mysql.server
      --key_buffer_size=20M
      --max_allowed_packet=250M
      --table_open_cache=1000
      --table_definition_cache=2000
      --read_buffer_size=1M
      --thread_cache_size=8
      --max_connections=1024
      --long_query_time=60
      --slow_query_log=1
      

      Attachments

        Issue Links

          Activity

            suresh.ramagiri@mariadb.com suresh ramagiri created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            Description It is reported by one of our customers the my_print_defaults -e option is not working with MariaDB server 10.5

            Here are the test results:

            At MariaDB server 10.4.17, my_print_defaults -e giving the required output. Whereas at MariaDB server 10.5.x, -e option is not working instead has to specify --defaults-extra-file (alias).


            /root/my.cnf
            [mariadb-10.4]
            key_buffer_size=20M
            max_allowed_packet=250M
            table_open_cache=1000
            table_definition_cache=2000
            read_buffer_size=1M
            thread_cache_size=8
            max_connections=1024
            long_query_time=60
            slow_query_log=1

            [root@test001 ~]# mysql --version
            mysql Ver 15.1 Distrib 10.4.17-MariaDB, for Linux (x86_64) using readline 5.1

            [root@test001 ~]# my_print_defaults -e /root/my.cnf --mysqld mysql.server
            --key_buffer_size=20M
            --max_allowed_packet=250M
            --table_open_cache=1000
            --table_definition_cache=2000
            --read_buffer_size=1M
            --thread_cache_size=8
            --max_connections=1024
            --long_query_time=60
            --slow_query_log=1


            /root/my.cnf
            [mariadb-10.5]
            key_buffer_size=20M
            max_allowed_packet=250M
            table_open_cache=1000
            table_definition_cache=2000
            read_buffer_size=1M
            thread_cache_size=8
            max_connections=1024
            long_query_time=60
            slow_query_log=1

            [root@test001 ~]# mysql --version
            mysql Ver 15.1 Distrib 10.5.8-MariaDB, for Linux (x86_64) using readline 5.1
            [root@test001 ~]#
            [root@test001 ~]# my_print_defaults -e /root/my.cnf --mysqld mysql.server
            [root@test001 ~]# my_print_defaults --defaults-extra-file=/root/my.cnf --mysqld mysql.server
            --key_buffer_size=20M
            --max_allowed_packet=250M
            --table_open_cache=1000
            --table_definition_cache=2000
            --read_buffer_size=1M
            --thread_cache_size=8
            --max_connections=1024
            --long_query_time=60
            --slow_query_log=1
            It is reported by one of our customers the my_print_defaults -e option is not working with MariaDB server 10.5

            Here are the test results:

            At MariaDB server 10.4.17, my_print_defaults -e giving the required output. Whereas at MariaDB server 10.5.x, -e option is not working instead has to specify --defaults-extra-file (alias).

            /root/my.cnf
            {noformat}
            [mariadb-10.4]
            key_buffer_size=20M
            max_allowed_packet=250M
            table_open_cache=1000
            table_definition_cache=2000
            read_buffer_size=1M
            thread_cache_size=8
            max_connections=1024
            long_query_time=60
            slow_query_log=1
            {noformat}
            {noformat}
            [root@test001 ~]# mysql --version
            mysql Ver 15.1 Distrib 10.4.17-MariaDB, for Linux (x86_64) using readline 5.1

            [root@test001 ~]# my_print_defaults -e /root/my.cnf --mysqld mysql.server
            --key_buffer_size=20M
            --max_allowed_packet=250M
            --table_open_cache=1000
            --table_definition_cache=2000
            --read_buffer_size=1M
            --thread_cache_size=8
            --max_connections=1024
            --long_query_time=60
            --slow_query_log=1
            {noformat}

            /root/my.cnf
            {noformat}
            [mariadb-10.5]
            key_buffer_size=20M
            max_allowed_packet=250M
            table_open_cache=1000
            table_definition_cache=2000
            read_buffer_size=1M
            thread_cache_size=8
            max_connections=1024
            long_query_time=60
            slow_query_log=1
            {noformat}
            {noformat}
            [root@test001 ~]# mysql --version
            mysql Ver 15.1 Distrib 10.5.8-MariaDB, for Linux (x86_64) using readline 5.1
            [root@test001 ~]#
            [root@test001 ~]# my_print_defaults -e /root/my.cnf --mysqld mysql.server
            [root@test001 ~]# my_print_defaults --defaults-extra-file=/root/my.cnf --mysqld mysql.server
            --key_buffer_size=20M
            --max_allowed_packet=250M
            --table_open_cache=1000
            --table_definition_cache=2000
            --read_buffer_size=1M
            --thread_cache_size=8
            --max_connections=1024
            --long_query_time=60
            --slow_query_log=1
            {noformat}
            elenst Elena Stepanova made changes -
            Assignee Elena Stepanova [ elenst ]
            elenst Elena Stepanova made changes -
            Component/s Scripts & Clients [ 11002 ]
            Fix Version/s 10.5 [ 23123 ]
            Affects Version/s 10.5 [ 23123 ]
            Assignee Elena Stepanova [ elenst ] Sergei Golubchik [ serg ]
            elenst Elena Stepanova made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            julien.fritsch Julien Fritsch made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Rucha Deodhar [ rucha174 ]
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            julien.fritsch Julien Fritsch made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            rucha174 Rucha Deodhar made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            rucha174 Rucha Deodhar made changes -
            Assignee Rucha Deodhar [ rucha174 ] Sergei Golubchik [ serg ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Rucha Deodhar [ rucha174 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            rucha174 Rucha Deodhar made changes -
            rucha174 Rucha Deodhar made changes -
            Assignee Rucha Deodhar [ rucha174 ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Rucha Deodhar [ rucha174 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            rucha174 Rucha Deodhar made changes -
            Assignee Rucha Deodhar [ rucha174 ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Rucha Deodhar [ rucha174 ]
            rucha174 Rucha Deodhar made changes -
            Fix Version/s 10.5.12 [ 26025 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            rucha174 Rucha Deodhar made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.5.12 [ 26025 ]
            rucha174 Rucha Deodhar made changes -
            Fix Version/s 10.5.12 [ 26025 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.5.12 [ 26025 ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            rucha174 Rucha Deodhar made changes -
            Fix Version/s 10.5.12 [ 26025 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 115947 ] MariaDB v4 [ 158603 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 183102

            People

              rucha174 Rucha Deodhar
              suresh.ramagiri@mariadb.com suresh ramagiri
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.