Server IP : 172.67.216.182 / Your IP : 162.158.162.73 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/mysql-test/t/ |
Upload File : |
# Test archive engine when symbolic links are available. --source include/not_windows.inc --source include/have_archive.inc # DATA DIRECTORY/INDEX DIRECTORY require symbolic link support --source include/have_symlink.inc let $MYSQLD_DATADIR= `select @@datadir`; let $data_directory = DATA DIRECTORY = '$MYSQL_TMP_DIR/archive'; let $index_directory = INDEX DIRECTORY = '$MYSQL_TMP_DIR/archive'; --echo # --echo # Archive can only use an existing directory for DATA DIRECTORY. --echo # --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR --error ER_FILE_NOT_FOUND eval CREATE TABLE t1 (a int AUTO_INCREMENT KEY, b char(30)) ENGINE archive $data_directory $index_directory; --echo # --echo # mkdir MYSQL_TMP_DIR/archive and try again... --echo # Archive will use a symlink for DATA DIRECTORY but ignore INDEX DIRECTORY. --echo # --mkdir $MYSQL_TMP_DIR/archive --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR eval CREATE TABLE t1 (a int AUTO_INCREMENT KEY, b char(30)) ENGINE archive $data_directory $index_directory; INSERT INTO t1 VALUES (NULL, "blue"); INSERT INTO t1 VALUES (NULL, "red"); INSERT INTO t1 VALUES (NULL, "yellow"); --echo # Checking if archive file exists where we specified in DATA DIRECTORY --file_exists $MYSQL_TMP_DIR/archive/t1.ARZ --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR SHOW CREATE TABLE t1; DROP TABLE t1; --echo # --echo # Be sure SQL MODE "NO_DIR_IN_CREATE" prevents the use of DATA DIRECTORY --echo # SET @org_mode=@@sql_mode; SET @@sql_mode='NO_DIR_IN_CREATE'; SELECT @@sql_mode; --replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR eval CREATE TABLE t1 (a int AUTO_INCREMENT KEY, b char(30)) ENGINE archive $data_directory; INSERT INTO t1 VALUES (NULL, "blue"); INSERT INTO t1 VALUES (NULL, "red"); INSERT INTO t1 VALUES (NULL, "yellow"); --echo # Checking if archive file exists in --datadir since DATA DIRECTORY was ignored. --file_exists $MYSQLD_DATADIR/test/t1.ARZ DROP TABLE t1; set @@sql_mode=@org_mode; --echo # --echo # MySQL engine does not allow DATA DIRECTORY to be --echo # within --datadir for any engine, including Archive --echo # --replace_result $MYSQLD_DATADIR MYSQLD_DATADIR --error ER_WRONG_ARGUMENTS eval CREATE TABLE t1 (a int AUTO_INCREMENT KEY, b char(30)) ENGINE archive DATA DIRECTORY '$MYSQLD_DATADIR/test'; --replace_result $MYSQLD_DATADIR MYSQLD_DATADIR --error ER_WRONG_ARGUMENTS eval CREATE TABLE t1 (c1 int(10), PRIMARY KEY (c1)) ENGINE archive INDEX DIRECTORY '$MYSQLD_DATADIR/test'; --echo # --echo # Cleanup --echo # --rmdir $MYSQL_TMP_DIR/archive