summaryrefslogtreecommitdiff
path: root/mysql-test/r/outfile.result
blob: e8c62098f95925a2ad465b451b4f275b67f9dc5a (plain)
ofshex dumpascii
0000 64 72 6f 70 20 74 61 62 6c 65 20 69 66 20 65 78 69 73 74 73 20 74 31 3b 0a 63 72 65 61 74 65 20 drop.table.if.exists.t1;.create.
0020 74 61 62 6c 65 20 74 31 20 28 60 61 60 20 62 6c 6f 62 29 3b 0a 69 6e 73 65 72 74 20 69 6e 74 6f table.t1.(`a`.blob);.insert.into
0040 20 74 31 20 76 61 6c 75 65 73 28 22 68 65 6c 6c 6f 20 77 6f 72 6c 64 22 29 2c 28 22 48 65 6c 6c .t1.values("hello.world"),("Hell
0060 6f 20 6d 61 72 73 22 29 2c 28 4e 55 4c 4c 29 3b 0a 73 65 6c 65 63 74 20 6c 6f 61 64 5f 66 69 6c o.mars"),(NULL);.select.load_fil
0080 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e e(concat(@tmpdir,"/outfile-test.
00a0 31 22 29 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 1"));.load_file(concat(@tmpdir,"
00c0 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 31 22 29 29 0a 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 48 /outfile-test.1")).hello.world.H
00e0 65 6c 6c 6f 20 6d 61 72 73 0a 5c 4e 0a 0a 73 65 6c 65 63 74 20 6c 6f 61 64 5f 66 69 6c 65 28 63 ello.mars.\N..select.load_file(c
0100 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 32 22 29 oncat(@tmpdir,"/outfile-test.2")
0120 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 );.load_file(concat(@tmpdir,"/ou
0140 74 66 69 6c 65 2d 74 65 73 74 2e 32 22 29 29 0a 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 73 65 6c 65 tfile-test.2")).hello.world.sele
0160 63 74 20 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 ct.load_file(concat(@tmpdir,"/ou
0180 74 66 69 6c 65 2d 74 65 73 74 2e 33 22 29 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 tfile-test.3"));.load_file(conca
01a0 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 33 22 29 29 0a 00 0a t(@tmpdir,"/outfile-test.3"))...
01c0 45 52 52 4f 52 20 48 59 30 30 30 3a 20 46 69 6c 65 20 27 2e 2e 2f 74 6d 70 2f 6f 75 74 66 69 6c ERROR.HY000:.File.'../tmp/outfil
01e0 65 2d 74 65 73 74 2e 31 27 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 73 0a 45 52 52 4f 52 20 48 e-test.1'.already.exists.ERROR.H
0200 59 30 30 30 3a 20 46 69 6c 65 20 27 2e 2e 2f 74 6d 70 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e Y000:.File.'../tmp/outfile-test.
0220 32 27 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 73 0a 45 52 52 4f 52 20 48 59 30 30 30 3a 20 46 2'.already.exists.ERROR.HY000:.F
0240 69 6c 65 20 27 2e 2e 2f 74 6d 70 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 33 27 20 61 6c 72 65 ile.'../tmp/outfile-test.3'.alre
0260 61 64 79 20 65 78 69 73 74 73 0a 73 65 6c 65 63 74 20 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 ady.exists.select.load_file(conc
0280 61 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 6e 6f 74 2d 65 78 at(@tmpdir,"/outfile-test.not-ex
02a0 69 73 74 22 29 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 ist"));.load_file(concat(@tmpdir
02c0 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 6e 6f 74 2d 65 78 69 73 74 22 29 29 0a 4e 55 4c ,"/outfile-test.not-exist")).NUL
02e0 4c 0a 64 72 6f 70 20 74 61 62 6c 65 20 74 31 3b 0a 73 65 6c 65 63 74 20 6c 6f 61 64 5f 66 69 6c L.drop.table.t1;.select.load_fil
0300 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e e(concat(@tmpdir,"/outfile-test.
0320 34 22 29 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 74 28 40 74 6d 70 64 69 72 2c 22 4"));.load_file(concat(@tmpdir,"
0340 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 34 22 29 29 0a 31 0a 0a 43 52 45 41 54 45 20 54 41 42 /outfile-test.4")).1..CREATE.TAB
0360 4c 45 20 74 31 20 28 61 20 49 4e 54 29 3b 0a 45 58 50 4c 41 49 4e 0a 53 45 4c 45 43 54 20 2a 0a LE.t1.(a.INT);.EXPLAIN.SELECT.*.
0380 49 4e 54 4f 20 4f 55 54 46 49 4c 45 20 27 2f 74 6d 70 2f 74 31 2e 74 78 74 27 0a 20 20 46 49 45 INTO.OUTFILE.'/tmp/t1.txt'...FIE
03a0 4c 44 53 20 54 45 52 4d 49 4e 41 54 45 44 20 42 59 20 27 2c 27 20 4f 50 54 49 4f 4e 41 4c 4c 59 LDS.TERMINATED.BY.','.OPTIONALLY
03c0 20 45 4e 43 4c 4f 53 45 44 20 42 59 20 27 22 27 20 4c 49 4e 45 53 20 54 45 52 4d 49 4e 41 54 45 .ENCLOSED.BY.'"'.LINES.TERMINATE
03e0 44 20 42 59 20 27 5c 72 5c 6e 27 0a 20 20 46 52 4f 4d 20 74 31 3b 0a 69 64 09 73 65 6c 65 63 74 D.BY.'\r\n'...FROM.t1;.id.select
0400 5f 74 79 70 65 09 74 61 62 6c 65 09 74 79 70 65 09 70 6f 73 73 69 62 6c 65 5f 6b 65 79 73 09 6b _type.table.type.possible_keys.k
0420 65 79 09 6b 65 79 5f 6c 65 6e 09 72 65 66 09 72 6f 77 73 09 45 78 74 72 61 0a 31 09 53 49 4d 50 ey.key_len.ref.rows.Extra.1.SIMP
0440 4c 45 09 74 31 09 73 79 73 74 65 6d 09 4e 55 4c 4c 09 4e 55 4c 4c 09 4e 55 4c 4c 09 4e 55 4c 4c LE.t1.system.NULL.NULL.NULL.NULL
0460 09 30 09 63 6f 6e 73 74 20 72 6f 77 20 6e 6f 74 20 66 6f 75 6e 64 0a 44 52 4f 50 20 54 41 42 4c .0.const.row.not.found.DROP.TABL
0480 45 20 74 31 3b 0a 75 73 65 20 74 65 73 74 3b 0a 63 72 65 61 74 65 20 74 61 62 6c 65 20 74 31 28 E.t1;.use.test;.create.table.t1(
04a0 61 20 69 6e 74 29 3b 0a 73 65 6c 65 63 74 20 2a 20 69 6e 74 6f 20 6f 75 74 66 69 6c 65 20 22 4d a.int);.select.*.into.outfile."M
04c0 59 53 51 4c 5f 54 45 53 54 5f 44 49 52 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 31 22 20 66 72 6f YSQL_TEST_DIR/outfile-test1".fro
04e0 6d 20 74 31 3b 0a 45 52 52 4f 52 20 48 59 30 30 30 3a 20 54 68 65 20 4d 79 53 51 4c 20 73 65 72 m.t1;.ERROR.HY000:.The.MySQL.ser
0500 76 65 72 20 69 73 20 72 75 6e 6e 69 6e 67 20 77 69 74 68 20 74 68 65 20 2d 2d 73 65 63 75 72 65 ver.is.running.with.the.--secure
0520 2d 66 69 6c 65 2d 70 72 69 76 20 6f 70 74 69 6f 6e 20 73 6f 20 69 74 20 63 61 6e 6e 6f 74 20 65 -file-priv.option.so.it.cannot.e
0540 78 65 63 75 74 65 20 74 68 69 73 20 73 74 61 74 65 6d 65 6e 74 0a 64 72 6f 70 20 74 61 62 6c 65 xecute.this.statement.drop.table
0560 20 74 31 3b 0a 63 72 65 61 74 65 20 64 61 74 61 62 61 73 65 20 6d 79 73 71 6c 74 65 73 74 3b 0a .t1;.create.database.mysqltest;.
0580 63 72 65 61 74 65 20 75 73 65 72 20 75 73 65 72 5f 31 40 6c 6f 63 61 6c 68 6f 73 74 3b 0a 67 72 create.user.user_1@localhost;.gr
05a0 61 6e 74 20 61 6c 6c 20 6f 6e 20 6d 79 73 71 6c 74 65 73 74 2e 2a 20 74 6f 20 75 73 65 72 5f 31 ant.all.on.mysqltest.*.to.user_1
05c0 40 6c 6f 63 61 6c 68 6f 73 74 3b 0a 73 65 6c 65 63 74 20 73 63 68 65 6d 61 5f 6e 61 6d 65 0a 69 @localhost;.select.schema_name.i
05e0 6e 74 6f 20 6f 75 74 66 69 6c 65 20 22 2e 2e 2f 74 6d 70 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 nto.outfile."../tmp/outfile-test
0600 2e 34 22 0a 66 69 65 6c 64 73 20 74 65 72 6d 69 6e 61 74 65 64 20 62 79 20 27 2c 27 20 6f 70 74 .4".fields.terminated.by.','.opt
0620 69 6f 6e 61 6c 6c 79 20 65 6e 63 6c 6f 73 65 64 20 62 79 20 27 22 27 0a 20 6c 69 6e 65 73 20 74 ionally.enclosed.by.'"'..lines.t
0640 65 72 6d 69 6e 61 74 65 64 20 62 79 20 27 5c 6e 27 0a 66 72 6f 6d 20 69 6e 66 6f 72 6d 61 74 69 erminated.by.'\n'.from.informati
0660 6f 6e 5f 73 63 68 65 6d 61 2e 73 63 68 65 6d 61 74 61 0a 77 68 65 72 65 20 73 63 68 65 6d 61 5f on_schema.schemata.where.schema_
0680 6e 61 6d 65 20 6c 69 6b 65 20 27 6d 79 73 71 6c 74 65 73 74 27 3b 0a 45 52 52 4f 52 20 34 32 30 name.like.'mysqltest';.ERROR.420
06a0 30 30 3a 20 41 63 63 65 73 73 20 64 65 6e 69 65 64 20 66 6f 72 20 75 73 65 72 20 27 75 73 65 72 00:.Access.denied.for.user.'user
06c0 5f 31 27 40 27 6c 6f 63 61 6c 68 6f 73 74 27 20 74 6f 20 64 61 74 61 62 61 73 65 20 27 69 6e 66 _1'@'localhost'.to.database.'inf
06e0 6f 72 6d 61 74 69 6f 6e 5f 73 63 68 65 6d 61 27 0a 67 72 61 6e 74 20 66 69 6c 65 20 6f 6e 20 2a ormation_schema'.grant.file.on.*
0700 2e 2a 20 74 6f 20 75 73 65 72 5f 31 40 6c 6f 63 61 6c 68 6f 73 74 3b 0a 73 65 6c 65 63 74 20 73 .*.to.user_1@localhost;.select.s
0720 63 68 65 6d 61 5f 6e 61 6d 65 0a 69 6e 74 6f 20 6f 75 74 66 69 6c 65 20 22 2e 2e 2f 74 6d 70 2f chema_name.into.outfile."../tmp/
0740 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 34 22 0a 66 69 65 6c 64 73 20 74 65 72 6d 69 6e 61 74 65 outfile-test.4".fields.terminate
0760 64 20 62 79 20 27 2c 27 20 6f 70 74 69 6f 6e 61 6c 6c 79 20 65 6e 63 6c 6f 73 65 64 20 62 79 20 d.by.','.optionally.enclosed.by.
0780 27 22 27 0a 20 6c 69 6e 65 73 20 74 65 72 6d 69 6e 61 74 65 64 20 62 79 20 27 5c 6e 27 0a 66 72 '"'..lines.terminated.by.'\n'.fr
07a0 6f 6d 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 5f 73 63 68 65 6d 61 2e 73 63 68 65 6d 61 74 61 0a 77 om.information_schema.schemata.w
07c0 68 65 72 65 20 73 63 68 65 6d 61 5f 6e 61 6d 65 20 6c 69 6b 65 20 27 6d 79 73 71 6c 74 65 73 74 here.schema_name.like.'mysqltest
07e0 27 3b 0a 75 73 65 20 74 65 73 74 3b 0a 72 65 76 6f 6b 65 20 61 6c 6c 20 70 72 69 76 69 6c 65 67 ';.use.test;.revoke.all.privileg
0800 65 73 20 6f 6e 20 2a 2e 2a 20 66 72 6f 6d 20 75 73 65 72 5f 31 40 6c 6f 63 61 6c 68 6f 73 74 3b es.on.*.*.from.user_1@localhost;
0820 0a 64 72 6f 70 20 75 73 65 72 20 75 73 65 72 5f 31 40 6c 6f 63 61 6c 68 6f 73 74 3b 0a 64 72 6f .drop.user.user_1@localhost;.dro
0840 70 20 64 61 74 61 62 61 73 65 20 6d 79 73 71 6c 74 65 73 74 3b 0a p.database.mysqltest;.