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

mysql_install_db shouldn't execute chown

    XMLWordPrintable

    Details

      Description

      One of the fixes for MDEV-19876 added a "chown" call to mysql_install_db:

      https://github.com/mariadb/server/commit/ec494cb1fadb40ae25b944bb1229fc2d6f88e8c6

      This essentially introduces a new limitation that mysql_install_db has to be run as root. This is not ideal for all users.

      The "chown" call didn't actually fix MDEV-19876, so maybe we should remove it. The proper fix for MDEV-19876 required changing the RPM's post-installation script:

      https://github.com/mariadb/server/commit/11f3e2366282eb8cf1cb0062793d102067db6472

      In my opinion, a packaging script seems like a more appropriate place for a fix like this than mysql_install_db does.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serg Sergei Golubchik
              Reporter:
              GeoffMontee Geoff Montee
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: