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

innodb_tmpdir only checked when setting at runtime, not in my.cnf

    XMLWordPrintable

Details

    Description

      When trying to set innodb_tmpdir at runtime the server prevents me from setting it to a path that is within the data directory:

      mysql> SET GLOBAL innodb_tmpdir="/usr/local/mysql/data/my-tmpdir";
      ERROR 1231 (42000): Variable 'innodb_tmpdir' can't be set to the value of '/usr/local/mysql/data/my-tmpdir'
       
      mysql> SHOW WARNINGS;
      | Level | Code | Message
      | Warning | 1210 | InnoDB: Path Location should not be same as mysql data directory location.
      | Error | 1231 | Variable 'innodb_tmpdir' can't be set to the value of '/usr/local/mysql-maria-10.1.19/var/my-tmpdir'
      

      Setting it to exactly the same path as above is possible via the my.cnf option file though. mysqld will start up fine without any warnings, and when checking the innodb_tmpdir variable it is indeed showing /usr/local/mysql-maria-10.1.19/var/my-tmpdir as current value.

      Attachments

        Activity

          People

            thiru Thirunarayanan Balathandayuthapani
            hholzgra Hartmut Holzgraefe
            Votes:
            1 Vote for this issue
            Watchers:
            2 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.