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

Add Option File Syntax '?' to ignore unreadable directories

    XMLWordPrintable

Details

    • Added support to use '?include_file' instead of '!include_file' syntax to ignore unreadable directories.

    Description

      Added support to use '?include_file' in addition to '!include_file' syntax to ignore unreadable directories.

      This is useful if one has MariaDB config files in etc that should only be visible for the super user and the MariaDB server but one still want to provide options for normal users.

      This helps solves a problem in 11.4 and above for users that do not want to use the automatic SSL authentication and don't want to have to use 'mariadbd --skip-ssl' when connecting to MariaDB server.

      Example of how to solve the skip-ssl problem:

      Create a readable /etc/my.cnf file with the following data:

       
      [client]
      skip-ssl
       
      ?includedir /etc/my.cnf.d
      
      

      If one would use '!' instead of '?' above normal users running the 'mariadb' client would get the error "Error Can't read dir of '/etc/my.cnf.d' (Errcode: 13 "Permission denied")"
      Using '?'' the readonly directory is ignored. The skip-ssl directive solves the problem of having to use --skip-ssl when connecting to MariaDB

      Attachments

        Activity

          People

            monty Michael Widenius
            monty Michael Widenius
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.