Server IP : 172.67.216.182 / Your IP : 172.70.92.223 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/innodb/r/ |
Upload File : |
# Starting server with keyring plugin # restart: --early-plugin-load=keyring_file=keyring_file.so --loose-keyring_file_data=MYSQL_TMP_DIR/mysecret_keyring --plugin-dir=KEYRING_PLUGIN_PATH SET GLOBAL innodb_file_per_table = 1; SELECT @@innodb_file_per_table; @@innodb_file_per_table 1 # # BUG#29543447: ALTER TABLE ALLOWS TDE ENCRYPTION ON MYISAM ENGINE # We disallow ENCRYPTION clause requesting for table encryption. # We allow ENCRYPTION clause with 'n' or 'N' for Heap/CSV engines. # MyISAM engine rejects even 'n' or 'N' in some cases, we keep # this behavior as is for now. # # CREATE TABLE requesting ENCRYPTION CREATE TABLE t1 (fld1 INT) ENCRYPTION='Y', ENGINE= MyISAM; ERROR HY000: Table storage engine 'MyISAM' does not support the create option 'ENCRYPTION' CREATE TABLE t1 (fld1 INT) ENCRYPTION='n', ENGINE= MyISAM; ERROR HY000: Table storage engine for 't1' doesn't have this option CREATE TABLE t1 (fld1 INT) ENCRYPTION='n', ENGINE= HEAP; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `fld1` int(11) DEFAULT NULL ) ENGINE=MEMORY DEFAULT CHARSET=latin1 ENCRYPTION='n' DROP TABLE t1; # ALTER TABLE requesting ENCRYPTION CREATE TABLE t1 (fld1 INT) ENGINE=MyISAM; ALTER TABLE t1 ENCRYPTION= 'Y'; ERROR HY000: Table storage engine 'MyISAM' does not support the create option 'ENCRYPTION' ALTER TABLE t1 ENCRYPTION= 'N'; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `fld1` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ENCRYPTION='N' # ALTER TABLE requesting ENCRYPTION with INPLACE algo. # Without patch, no error was reported. ALTER TABLE t1 ENCRYPTION= 'y', ALGORITHM=INPLACE; ERROR HY000: Table storage engine 'MyISAM' does not support the create option 'ENCRYPTION' ALTER TABLE t1 ENCRYPTION= 'n', ALGORITHM=INPLACE; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `fld1` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ENCRYPTION='n' DROP TABLE t1; # ALTER TABLE requesting ENCRYPTION with COPY algo. # Without patch, error was reported by SE. With # this patch the error is reported by SQL server. CREATE TABLE t1 (fld1 INT NOT NULL) ENGINE=MyISAM; ALTER TABLE t1 ENCRYPTION= 'y', ALGORITHM=COPY; ERROR HY000: Table storage engine 'MyISAM' does not support the create option 'ENCRYPTION' ALTER TABLE t1 ENCRYPTION= 'n', ALGORITHM=COPY; ERROR HY000: Table storage engine for '#sql-temporary' doesn't have this option # CSV/Heap allows values 'n' or 'N'. ALTER TABLE t1 ENGINE=CSV, ENCRYPTION= 'n', ALGORITHM=COPY; ALTER TABLE t1 ENGINE=Heap, ENCRYPTION= 'n', ALGORITHM=COPY; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `fld1` int(11) NOT NULL ) ENGINE=MEMORY DEFAULT CHARSET=latin1 ENCRYPTION='n' DROP TABLE t1; # CREATE TABLE with ENCRYPTION=''. # Allow it as it is not requesting for encryption. CREATE TABLE t1 (fld1 INT) ENGINE=MyISAM, ENCRYPTION=""; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `fld1` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ALTER TABLE t1 ENCRYPTION= ''; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `fld1` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 DROP TABLE t1; # Move encrypted InnoDB table to Heap. CREATE TABLE t1 (fld1 INT) ENCRYPTION='Y', ENGINE=InnoDB; ALTER TABLE t1 ENGINE= Heap; ERROR HY000: Table storage engine 'MEMORY' does not support the create option 'ENCRYPTION' DROP TABLE t1; # Starting server without keyring # restart: SET GLOBAL innodb_file_per_table=1;