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

unknown variable 'defaults-group-suffix= with mariadb-secure-installation

    XMLWordPrintable

Details

    Description

      As per the documentation, defaults-group-suffix option should work with mariadb-secure-installation script. https://mariadb.com/kb/en/mariadb-secure-installation/

      But when we try to run, getting error like unknown variable.

      [root@localhost ~]# mariadb-secure-installation --defaults-group-suffix=.lz
       
      NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
            SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
      ...
      Enter current password for root (enter for none): 
      /usr/bin/mariadb: unknown variable 'defaults-group-suffix=.lz'
      OK, successfully used password, moving on...
      

      Even in the script we don't see that option mentioned.

      [root@localhost ~]# head -50 /usr/bin/mariadb-secure-installation
      #!/bin/sh
      ...
      config=".my.cnf.$$"
      command=".mysql.$$"
      output=".my.output.$$"
       
      trap "interrupt" 1 2 3 6 15
       
      rootpass=""
      echo_n=
      echo_c=
      basedir=
      defaults_file=
      defaults_extra_file=
      no_defaults=
      

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            niljoshi Nilnandan Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.