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

aria_chk and aria_pack cannot read encrypted tables

    XMLWordPrintable

Details

    Description

      aria_chk and aria_pack don't have options for encryption, so they cannot read encrypted tables.

      --source suite/encryption/include/have_file_key_management_plugin.inc
       
      --let $datadir= `select @@datadir`
      --let $encrypt= `select @@aria_encrypt_tables`
      set global aria_encrypt_tables= 1;
      create table t1 (pk int primary key, a int) engine=Aria;
      insert into t1 values (1,1);
       
      --source include/shutdown_mysqld.inc
      --exec $MARIA_CHK --datadir=$datadir $datadir/test/t1.MAI
      --source include/start_mysqld.inc
       
      drop table t1;
      --eval set global aria_encrypt_tables = $encrypt
      

      main 4b79d7b8ee557d53a859aedec839b8673585b514

      aria_chk: error: 199 when opening Aria table '/share8t/bld/main-asan-ubsan/mysql-test/var/mysqld.1/data//test/t1.MAI'
      

      Attachments

        Activity

          People

            monty Michael Widenius
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.