403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.70.92.154
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/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/innodb/t/tablespace_portability.test
--echo #
--echo # Non-Windows version of Tablespace Portability test.
--echo #
--echo # This testcase is related to WL#5980 & WL#6205.
--echo # It tests whether datafiles can be copied from one location
--echo # to another, and still be opened. In order to make this testcase run
--echo # on any OS, we create the tablespaces here.
--echo #

# On Windows, MTR converts '\' to '/' in file names.
# On other systems, '\' is left unchanged.
# So this output file is different from the Windows version.

--source include/have_innodb_16k.inc
--source include/not_embedded.inc
--source include/not_windows.inc

SET DEFAULT_STORAGE_ENGINE=InnoDB;

--echo #
--echo # Try to create a tablespace in a read-only directory.
--echo #
# This section is does not work on Windows since it uses chmod to prevent
# a file from being created in that directory.  On Windows, the user is often
# an Administrator who can still create files in that directory
--mkdir $MYSQL_TMP_DIR/read_only_dir
--chmod 0444 $MYSQL_TMP_DIR/read_only_dir
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
--error ER_CREATE_FILEGROUP_FAILED
eval CREATE TABLESPACE s7_def ADD DATAFILE '$MYSQL_TMP_DIR/read_only_dir/s7.ibd';
SHOW WARNINGS;
--rmdir $MYSQL_TMP_DIR/read_only_dir

--disable_query_log
call mtr.add_suppression("\\[ERROR\\] InnoDB: The error means mysqld does not have the access rights to the directory.");
call mtr.add_suppression("\\[ERROR\\] InnoDB: Cannot create file");
call mtr.add_suppression("\\[Warning\\] InnoDB: Converting backslash to forward slash in ADD DATAFILE");
--enable_query_log

--source suite/innodb/include/tablespace_filenames.inc
--source suite/innodb/include/tablespace_portability.inc


Youez - 2016 - github.com/yon3zu
LinuXploit