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

MariaDB server or backup RPM install assumes mysql user exists

    XMLWordPrintable

Details

    Description

      NOTE: I set the priority of this issue to Major because I don't know where the RPM install is failing. There could be security implications for a chown command that is not able to execute successfully thus leaving whatever files or directories it was trying to change ownership of with unexpected ownership.

      As root, run the command

      yum install MariaDB-server MariaDB-client MariaDB-backup
      

      which produces

      chown: invalid user: 'mysql'
      

      on the console as it's installing right after the line

        Installing : MariaDB-server-10.3.15-1.el7.centos.x86_64  9/11
      

      So, this is likely either a problem with the MariaDB-server package (since the error message comes right after its "Installing" line) or the MariaDB-backup package (since the error message comes right before its "Installing" line).

      I suspect one of these packages incorrectly assumes the mysql user exists. After the install completes, the mysql user exists--I assume because one of the three packages adds it.

      If the three packages are uninstalled

      yum remove MariaDB-server MariaDB-client MariaDB-backup
      

      and then installed again

      yum install MariaDB-server MariaDB-client MariaDB-backup
      

      then this second time there is no error about the user mysql being invalid. I presume this is because the mysql user is not removed as part of the package removal and therefore the user already exists the second time around.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            jlmuir J. Lewis Muir
            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.