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

mysql_install_db complains about missed table mysql.gtid_slave_pos when started with option log-bin

    XMLWordPrintable

Details

    Description

      If someone has option log-bin in their default configuration file mysql_install_db prints warning "2020-09-03 16:37:13 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")", although having such a table is not expected before mysql_install_db run.

      How to Repeat.

      $ ./scripts/mysql_install_db --no-defaults --basedir=. --datadir=./data --log-bin=master 
      Installing MariaDB/MySQL system tables in './data' ...
      2020-09-03 16:37:13 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
      OK
      ...
      Consider joining MariaDB's strong and vibrant community:
      https://mariadb.org/get-involved/
      

      Suggested Fix

      Ignore log-bin option in --bootstrap mode.

      Attachments

        Activity

          People

            danblack Daniel Black
            svetasmirnova Sveta Smirnova
            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.