403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.31
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/innodb_bug14169459.test
# This is the test for bug #14169459.

--source include/have_innodb.inc

SET default_storage_engine=InnoDB;

--disable_query_log
# These values can change during the test
LET $innodb_file_per_table_orig=`select @@innodb_file_per_table`;

# Set up some variables
LET $MYSQL_DATA_DIR = `select @@datadir`;
--enable_query_log

SET GLOBAL innodb_file_per_table=ON;

--echo #
--echo # Create a temporary table and drop it.  Make sure the ibd file is gone.
--echo # Make sure a discarded table can be dropped with all files deleted.
--echo #
CREATE TEMPORARY TABLE t14169459_1 (a INT, b TEXT) engine=InnoDB;
CREATE TABLE t14169459_2 (a INT, b TEXT) engine=InnoDB;

INSERT INTO t14169459_1 VALUES (1, 'one'),(2, 'two');
INSERT INTO t14169459_2 VALUES (1, 'one'),(2, 'two');
SELECT * FROM t14169459_1;
SELECT * FROM t14169459_2;
SHOW CREATE TABLE t14169459_1;
SHOW CREATE TABLE t14169459_2;

--echo ### directory of MYSQL_DATA_DIR/test
--list_files $MYSQL_DATA_DIR/test
--echo ### directory of MYSQL_TMP_DIR/mysqld.1
--replace_regex /#sql[0-9a-f_]*/#sql<temporary>/
--list_files $MYSQL_TMP_DIR/mysqld.1 *.ibd

FLUSH TABLES t14169459_2 FOR EXPORT;
SELECT * FROM t14169459_2;
UNLOCK TABLES;
--echo ### directory of MYSQL_DATA_DIR/test
--list_files $MYSQL_DATA_DIR/test
ALTER TABLE t14169459_2 DISCARD TABLESPACE;
--error ER_TABLESPACE_DISCARDED
SELECT * FROM t14169459_2;
--echo ### directory of MYSQL_DATA_DIR/test
--list_files $MYSQL_DATA_DIR/test
--echo ### directory of MYSQL_TMP_DIR/mysqld.1
--replace_regex /#sql[0-9a-f_]*/#sql<temporary>/
--list_files $MYSQL_TMP_DIR/mysqld.1 *.ibd

#--file_exists $MYSQL_TMP_DIR/mysqld.1/#sql15f8_2_1.ibd

DROP TABLE t14169459_1;
DROP TABLE t14169459_2;
--echo ### directory of MYSQL_DATA_DIR/test
--list_files $MYSQL_DATA_DIR/test
--echo ### directory of MYSQL_TMP_DIR/mysqld.1
--replace_regex /#sql[0-9a-f_]*/#sql<temporary>/
--list_files $MYSQL_TMP_DIR/mysqld.1 *.ibd

-- disable_query_log
eval set global innodb_file_per_table=$innodb_file_per_table_orig;
-- enable_query_log


Youez - 2016 - github.com/yon3zu
LinuXploit