Debian Codegraph @

mysql-test/suite/innodb/r/tmpdir.result

raw
1 #
2 # Bug #19183565 CREATE DYNAMIC INNODB_TMPDIR VARIABLE TO CONTROL
3 # WHERE INNODB WRITES TEMP FILES
4 #
5 # If innodb_tmpdir is NULL or "", temporary file will be created in
6 # server configuration variable location(--tmpdir)
7 create table t1(a int primary key)engine=innodb;
8 show session variables like 'innodb_tmpdir';
9 Variable_name Value
10 innodb_tmpdir
11 alter table t1 add column b int not null;
12 set global innodb_tmpdir=NULL;
13 # Connection con1
14 show session variables like 'innodb_tmpdir';
15 Variable_name Value
16 innodb_tmpdir
17 alter table t1 add key(b);
18 drop table t1;
19 # innodb_tmpdir with invalid path.
20 create table t1(a int primary key)engine=innodb;
21 set global innodb_tmpdir='wrong_value';
22 ERROR 42000: Variable 'innodb_tmpdir' can't be set to the value of 'wrong_value'
23 show warnings;
24 Level Code Message
25 Warning 1210 InnoDB: Path doesn't exist.
26 Error 1231 Variable 'innodb_tmpdir' can't be set to the value of 'wrong_value'
27 drop table t1;
28 # innodb_tmpdir with mysql data directory path.
29 create table t1(a text, b text, fulltext(a,b))engine=innodb;
30 insert into t1 values('test1', 'test2');
31 insert into t1 values('text1', 'text2');
32 set global innodb_tmpdir = @@global.datadir;
33 ERROR 42000: Variable 'innodb_tmpdir' can't be set to the value of 'MYSQL_DATADIR'
34 show warnings;
35 Level Code Message
36 Warning 1210 InnoDB: Path location should not be same as mysql data directory location.
37 Error 1231 DATADIR/data/'
38 drop table t1;
39 # innodb_tmpdir with valid location.
40 create table t1(a text, b text, fulltext(a,b))engine=innodb;
41 insert into t1 values('test1', 'test2');
42 insert into t1 values('text1', 'text2');
43 set @tmpdir = @@global.tmpdir;
44 set global innodb_tmpdir = @tmpdir;
45 show session variables like 'innodb_tmpdir';
46 Variable_name Value
47 innodb_tmpdir
48 # Connection con3
49 alter table t1 add fulltext(b);
50 set global innodb_tmpdir=NULL;
51 drop table t1;