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

Can not restore table after partial backup

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6.9
    • 10.3
    • Backup
    • None

    Description

      Create tables e.g. table1, table2, table10, make partial backup:

      sudo mariadb-backup --backup -utest_user -p**** --target-dir=backup --tables=table1
      
      

      stop server, cleanup /var/lib/mysql, run mariadb-install-db, restart server, re-create users

      Create empty table, discard its tables space: `alter table table1 discard tablespace;`

      Try to restore `table1`:

      sudo mariadb-backup --prepare  --target-dir=backup --export
      sudo cp backup/test/table1.ibd /var/lib/mysql/test/
      sudo cp backup/test/table1.cfg /var/lib/mysql/test/
      sudo chown mysql:mysql /var/lib/mysql -R
      
      

      Try to import tablespace:

      MariaDB [test]> alter table table1 import tablespace;
      ERROR 1808 (HY000): Schema mismatch (Column s precise type mismatch, it's 0X8100F in the table and 0X2D100F in the tablespace meta file)
      
      

      what do `0X8100F` and `0X2D100F` ?

      Documentation:

      Should mariadb-backup tool do partial backup restore automatically?

      Attachments

        Activity

          People

            bar Alexander Barkov
            tturenko Timofey Turenko
            Votes:
            0 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.