Details

    Description

      Trying to update our package to 10.6.7 from 10.6.5 I noticed this new odd error when testing out mariadb-install-db.

      humpty$ sudo /usr/local/bin/mariadb-install-db
      Installing MariaDB/MySQL system tables in '/var/mysql' ...
      2022-02-12 20:43:36 0 [ERROR] Unknown suffix '_' used for variable 'group_concat_max_len' (value '_mysql')
      2022-02-12 20:43:36 0 [ERROR] /usr/local/libexec/mariadbd: Error while setting value '_mysql' to 'group_concat_max_len'
      

      Attachments

        Activity

          brad0 Brad Smith added a comment -

          Thank you for looking into this. OpenBSD has had a very minimal patch for group handling which I re-based on that commit, but all it was was just the command-line handling for --group passed to mariadb-install-db and changing the chown operation.

          brad0 Brad Smith added a comment - Thank you for looking into this. OpenBSD has had a very minimal patch for group handling which I re-based on that commit, but all it was was just the command-line handling for --group passed to mariadb-install-db and changing the chown operation.

          Right. While I didn't try it in your environment, I think you should be able to work around the problem by dropping this part from the script

          if test -n "$group"
          then
            args="$args --group=$group"
          fi
          

          elenst Elena Stepanova added a comment - Right. While I didn't try it in your environment, I think you should be able to work around the problem by dropping this part from the script if test -n "$group" then args="$args --group=$group" fi
          brad0 Brad Smith added a comment -

          It looks like that piece as well as the line..

          GROUP_OPTION="--group=$group"
          

          That was added to mysqld_safe.sh which should be removed. At the moment it does nothing since the shell script was not changed further down where USER_OPTION is handled.

          brad0 Brad Smith added a comment - It looks like that piece as well as the line.. GROUP_OPTION= "--group=$group" That was added to mysqld_safe.sh which should be removed. At the moment it does nothing since the shell script was not changed further down where USER_OPTION is handled.

          I have now removed sending the --group option to the server.
          I have kept the old code (partly in comments) for a day when we want to add a --group option
          to the server to force it to use a specific group for created files.

          monty Michael Widenius added a comment - I have now removed sending the --group option to the server. I have kept the old code (partly in comments) for a day when we want to add a --group option to the server to force it to use a specific group for created files.

          Bug fix was trivial, most time spent on reading up and discussions

          monty Michael Widenius added a comment - Bug fix was trivial, most time spent on reading up and discussions

          People

            monty Michael Widenius
            brad0 Brad Smith
            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.