Server IP : 172.67.216.182 / Your IP : 172.69.166.106 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 : |
SET default_storage_engine=InnoDB; SET GLOBAL innodb_file_per_table=ON; # # Create a temporary table and drop it. Make sure the ibd file is gone. # Make sure a discarded table can be dropped with all files deleted. # 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; a b 1 one 2 two SELECT * FROM t14169459_2; a b 1 one 2 two SHOW CREATE TABLE t14169459_1; Table Create Table t14169459_1 CREATE TEMPORARY TABLE `t14169459_1` ( `a` int(11) DEFAULT NULL, `b` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1 SHOW CREATE TABLE t14169459_2; Table Create Table t14169459_2 CREATE TABLE `t14169459_2` ( `a` int(11) DEFAULT NULL, `b` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ### directory of MYSQL_DATA_DIR/test t14169459_2.frm t14169459_2.ibd ### directory of MYSQL_TMP_DIR/mysqld.1 FLUSH TABLES t14169459_2 FOR EXPORT; SELECT * FROM t14169459_2; a b 1 one 2 two UNLOCK TABLES; ### directory of MYSQL_DATA_DIR/test t14169459_2.frm t14169459_2.ibd ALTER TABLE t14169459_2 DISCARD TABLESPACE; SELECT * FROM t14169459_2; ERROR HY000: Tablespace has been discarded for table 't14169459_2' ### directory of MYSQL_DATA_DIR/test t14169459_2.frm ### directory of MYSQL_TMP_DIR/mysqld.1 DROP TABLE t14169459_1; DROP TABLE t14169459_2; ### directory of MYSQL_DATA_DIR/test ### directory of MYSQL_TMP_DIR/mysqld.1