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

debian packages install /etc/mysql/mariadb.cnf however its not read by default

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.3(EOL)
    • 10.3.7
    • Packaging, Platform Debian
    • None
    • ubuntu artful (power9)

    Description

      $ mysqld --help --verbose
      Default options are read from the following files in the given order:
      /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf 
      

      ~$ dpkg-deb  --extract mariadb-common_10.3.6+maria~artful_all.deb /tmp/mc
      $ find /tmp/mc
      /tmp/mc
      /tmp/mc/usr
      /tmp/mc/usr/share
      /tmp/mc/usr/share/doc
      /tmp/mc/usr/share/doc/mariadb-common
      /tmp/mc/usr/share/doc/mariadb-common/copyright
      /tmp/mc/usr/share/doc/mariadb-common/changelog.gz
      /tmp/mc/etc
      /tmp/mc/etc/mysql
      /tmp/mc/etc/mysql/mariadb.cnf
      /tmp/mc/etc/mysql/mariadb.conf.d
      

      Other packages nicely install their config file in /etc/mysql/mariadb.conf.d/ however they aren't ever read.

       find /etc/mysql/mariadb.conf.d/ -ls
        1310736      4 drwxr-xr-x   2 root     root         4096 Mar 21 21:00 /etc/mysql/mariadb.conf.d/
        1312766      4 -rw-r--r--   1 root     root           53 Mar 21 20:41 /etc/mysql/mariadb.conf.d/cracklib_password_check.cnf
        1312769      4 -rw-r--r--   1 root     root           40 Mar 21 20:41 /etc/mysql/mariadb.conf.d/rocksdb.cnf
        1312765      4 -rw-r--r--   1 root     root           40 Mar 21 20:41 /etc/mysql/mariadb.conf.d/connect.cnf
        1312768      4 -rw-r--r--   1 root     root           40 Mar 21 20:41 /etc/mysql/mariadb.conf.d/oqgraph.cnf
        1312763      4 -rw-r--r--   1 root     root           48 Mar 21 20:41 /etc/mysql/mariadb.conf.d/aws_key_management.cnf
        1312754      4 -rw-r--r--   1 root     root          647 Mar 21 20:02 /etc/mysql/mariadb.conf.d/config.cnf
        1312764      4 -rw-r--r--   1 root     root          767 Mar 21 19:07 /etc/mysql/mariadb.conf.d/enable_encryption.preset
        1312767      4 -rw-r--r--   1 root     root           41 Mar 21 20:41 /etc/mysql/mariadb.conf.d/auth_gssapi.cnf
      

      Was something like the following intended? Or altering the default mysqld list of read files?

      /etc/mysql/conf.d/mariadb.cnf

       
      !include /etc/mysql/mariadb.cnf
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.