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

layout-dependent my.cnf location

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • 14.0
    • Configuration
    • None

    Description

      Currently mariadbd (and all clients) search for my.cnf in hardcoded locations /etc and /etc/mysql, except for *BSD where they use /usr/local/etc.

      This doesn't work well on Ubuntu, that uses /etc/mariadb and for binary tarballs that want to have local config, independent from other mariadb installations.

      Let's do this:

      • there is already a concept of "install layout" that sets various paths for deb/rpm/tgz differently, let's use that
      • rpm uses /etc as before
      • deb uses /etc/mariadb as Ubuntu prefers, and /etc/mariadb/my.cnf ends with a line ?include /etc/mysql/my.cnf so if anyone has configs in there — they'll still work.
      • tgz uses etc/ in the basedir, and etc/my.cnf ends with ?include /etc/my.cnf

      in the last two cases we preserve the backward compatible behavior, while allowing the user to opt-out of it (by deleting the ?include line).

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.