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

datadir cannot be changed even when specified via CLI

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5.8
    • 10.5
    • mariabackup
    • None
    • server version 10.1.35-MariaDB-1~bionic

    Description

      cat /etc/my.cnf

      [mariabackup]
      datadir=/opt/galera/data
      user=xx
      password=xx
      host=172.30.8.10
      

      mariabackup  --datadir=/opt/galera/data   --backup  -u xx -pxx  --history --compress  --parallel=4 --compress-threads=4  --no-version-check   --target-dir=/data/backups/2020-12-05 
      [00] 2020-12-08 09:31:10 Connecting to MySQL server host: 172.30.8.10, user: xx , password: set, port: not set, socket: not set
      [00] 2020-12-08 09:31:10 Using server version 10.1.35-MariaDB-1~bionic
      [00] 2020-12-08 09:31:10 Warning: MySQL variable 'datadir' points to nonexistent directory '/var/lib/mysql/'
      [00] 2020-12-08 09:31:10 Warning: option 'datadir' has different values:
        '/opt/galera/data' in defaults file
        '/var/lib/mysql/' in SHOW VARIABLES
      mariabackup based on MariaDB server 10.5.8-MariaDB Linux (x86_64)
      [00] 2020-12-08 09:31:10 uses posix_fadvise().
      mariabackup: Can't change dir to '/var/lib/mysql/' (errno: 2 "No such file or directory")
      [00] 2020-12-08 09:31:10 my_setwd() failed , /var/lib/mysql/
      

      Attachments

        Issue Links

          Activity

            People

              sysprg Julius Goryavsky
              Dyson Dyson
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.