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

galera_recovery script hard-codes the user

    XMLWordPrintable

Details

    Description

      The user account used to start mysqld by the galera_recovery script is hard-coded, which can make it difficult to change. See the following:

      $ grep "user" /usr/bin/galera_recovery
      user="mysql"
        eval /usr/sbin/mysqld $cmdline_args --user=$user --wsrep_recover \
          # shows up in systemctl status output as a hint to the user.
        [ "$euid" = "0" ] && chown $user $log_file
      

      Maybe it should use my_print_defaults to pull the user variable from configuration files instead, and only use the default if the variable isn't found?

      Attachments

        Issue Links

          Activity

            People

              sysprg Julius Goryavsky
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.