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

mysql_install_db creates mysql_upgrade_info file with different owner

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 10.8.8, 10.5.22, 10.6.14, 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 10.4(EOL), 10.7(EOL)
    • N/A
    • None
    • None

    Description

      When running mysql_install_db with --user=... option all files in the created datadir will be owned by the given user, with the exception of mysql_upgrade_info which is owned by the user that executed the script, e.g.:

      # mysql_install_db --user=mysql
      [...]
      # ls -l /var/lib/mysql
      total 111040
      -rw-rw---- 1 mysql mysql    417792 Sep 14 06:56 aria_log.00000001
      -rw-rw---- 1 mysql mysql        52 Sep 14 06:56 aria_log_control
      -rw-rw---- 1 mysql mysql       942 Sep 14 06:56 ib_buffer_pool
      -rw-rw---- 1 mysql mysql  12582912 Sep 14 06:56 ibdata1
      -rw-rw---- 1 mysql mysql 100663296 Sep 14 06:56 ib_logfile0
      drwx------ 2 mysql mysql      4096 Sep 14 06:56 mysql
      -rw-r--r-- 1 root  root         15 Sep 14 06:56 mysql_upgrade_info
      drwx------ 2 mysql mysql      4096 Sep 14 06:56 performance_schema
      drwx------ 2 mysql mysql     12288 Sep 14 06:56 sys
      drwx------ 2 mysql mysql      4096 Sep 14 06:56 test
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hholzgra Hartmut Holzgraefe
              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.