summaryrefslogtreecommitdiff
path: root/mysql-test/main/outfile.result
blob: 50ae13012a08221bd1a998322ba4b912561a3cff (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 2e 2e 2f 74 6d 70 2f 6f 75 74 ERROR.HY000:.File.'../../tmp/out
01e0 66 69 6c 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 file-test.1'.already.exists.ERRO
0200 52 20 48 59 30 30 30 3a 20 46 69 6c 65 20 27 2e 2e 2f 2e 2e 2f 74 6d 70 2f 6f 75 74 66 69 6c 65 R.HY000:.File.'../../tmp/outfile
0220 2d 74 65 73 74 2e 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 -test.2'.already.exists.ERROR.HY
0240 30 30 30 3a 20 46 69 6c 65 20 27 2e 2e 2f 2e 2e 2f 74 6d 70 2f 6f 75 74 66 69 6c 65 2d 74 65 73 000:.File.'../../tmp/outfile-tes
0260 74 2e 33 27 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 73 0a 73 65 6c 65 63 74 20 6c 6f 61 64 5f t.3'.already.exists.select.load_
0280 66 69 6c 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 file(concat(@tmpdir,"/outfile-te
02a0 73 74 2e 6e 6f 74 2d 65 78 69 73 74 22 29 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 st.not-exist"));.load_file(conca
02c0 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 69 t(@tmpdir,"/outfile-test.not-exi
02e0 73 74 22 29 29 0a 4e 55 4c 4c 0a 64 72 6f 70 20 74 61 62 6c 65 20 74 31 3b 0a 73 65 6c 65 63 74 st")).NULL.drop.table.t1;.select
0300 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 74 66 .load_file(concat(@tmpdir,"/outf
0320 69 6c 65 2d 74 65 73 74 2e 34 22 29 29 3b 0a 6c 6f 61 64 5f 66 69 6c 65 28 63 6f 6e 63 61 74 28 ile-test.4"));.load_file(concat(
0340 40 74 6d 70 64 69 72 2c 22 2f 6f 75 74 66 69 6c 65 2d 74 65 73 74 2e 34 22 29 29 0a 31 0a 0a 43 @tmpdir,"/outfile-test.4")).1..C
0360 52 45 41 54 45 20 54 41 42 4c 45 20 74 31 20 28 61 20 49 4e 54 29 3b 0a 45 58 50 4c 41 49 4e 0a REATE.TABLE.t1.(a.INT);.EXPLAIN.
0380 53 45 4c 45 43 54 20 2a 0a 49 4e 54 4f 20 4f 55 54 46 49 4c 45 20 27 2f 74 6d 70 2f 74 31 2e 74 SELECT.*.INTO.OUTFILE.'/tmp/t1.t
03a0 78 74 27 0a 20 20 46 49 45 4c 44 53 20 54 45 52 4d 49 4e 41 54 45 44 20 42 59 20 27 2c 27 20 4f xt'...FIELDS.TERMINATED.BY.','.O
03c0 50 54 49 4f 4e 41 4c 4c 59 20 45 4e 43 4c 4f 53 45 44 20 42 59 20 27 22 27 20 4c 49 4e 45 53 20 PTIONALLY.ENCLOSED.BY.'"'.LINES.
03e0 54 45 52 4d 49 4e 41 54 45 44 20 42 59 20 27 5c 72 5c 6e 27 0a 20 20 46 52 4f 4d 20 74 31 3b 0a TERMINATED.BY.'\r\n'...FROM.t1;.
0400 45 52 52 4f 52 20 48 59 30 30 30 3a 20 54 68 65 20 4d 61 72 69 61 44 42 20 73 65 72 76 65 72 20 ERROR.HY000:.The.MariaDB.server.
0420 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 2d 66 69 6c is.running.with.the.--secure-fil
0440 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 78 65 63 75 e-priv.option.so.it.cannot.execu
0460 74 65 20 74 68 69 73 20 73 74 61 74 65 6d 65 6e 74 0a 44 52 4f 50 20 54 41 42 4c 45 20 74 31 3b te.this.statement.DROP.TABLE.t1;
0480 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 61 20 69 6e 74 .use.test;.create.table.t1(a.int
04a0 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 59 53 51 4c 5f );.select.*.into.outfile."MYSQL_
04c0 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 6d 20 74 31 3b TEST_DIR/outfile-test1".from.t1;
04e0 0a 45 52 52 4f 52 20 48 59 30 30 30 3a 20 54 68 65 20 4d 61 72 69 61 44 42 20 73 65 72 76 65 72 .ERROR.HY000:.The.MariaDB.server
0500 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 2d 66 69 .is.running.with.the.--secure-fi
0520 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 78 65 63 le-priv.option.so.it.cannot.exec
0540 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 20 74 31 ute.this.statement.drop.table.t1
0560 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 63 72 65 ;.create.database.mysqltest;.cre
0580 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 61 6e 74 ate.user.user_1@localhost;.grant
05a0 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 40 6c 6f .all.on.mysqltest.*.to.user_1@lo
05c0 63 61 6c 68 6f 73 74 3b 0a 63 6f 6e 6e 65 63 74 20 20 63 6f 6e 32 38 31 38 31 5f 31 2c 6c 6f 63 calhost;.connect..con28181_1,loc
05e0 61 6c 68 6f 73 74 2c 75 73 65 72 5f 31 2c 2c 6d 79 73 71 6c 74 65 73 74 3b 0a 73 65 6c 65 63 74 alhost,user_1,,mysqltest;.select
0600 20 73 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 2e 2e .schema_name.into.outfile."../..
0620 2f 74 6d 70 2f 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 /tmp/outfile-test.4".fields.term
0640 69 6e 61 74 65 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 inated.by.','.optionally.enclose
0660 64 20 62 79 20 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 d.by.'"'..lines.terminated.by.'\
0680 6e 27 0a 66 72 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 n'.from.information_schema.schem
06a0 61 74 61 0a 77 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 ata.where.schema_name.like.'mysq
06c0 6c 74 65 73 74 27 3b 0a 45 52 52 4f 52 20 32 38 30 30 30 3a 20 41 63 63 65 73 73 20 64 65 6e 69 ltest';.ERROR.28000:.Access.deni
06e0 65 64 20 66 6f 72 20 75 73 65 72 20 27 75 73 65 72 5f 31 27 40 27 6c 6f 63 61 6c 68 6f 73 74 27 ed.for.user.'user_1'@'localhost'
0700 20 28 75 73 69 6e 67 20 70 61 73 73 77 6f 72 64 3a 20 4e 4f 29 0a 63 6f 6e 6e 65 63 74 69 6f 6e .(using.password:.NO).connection
0720 20 64 65 66 61 75 6c 74 3b 0a 64 69 73 63 6f 6e 6e 65 63 74 20 63 6f 6e 32 38 31 38 31 5f 31 3b .default;.disconnect.con28181_1;
0740 0a 67 72 61 6e 74 20 66 69 6c 65 20 6f 6e 20 2a 2e 2a 20 74 6f 20 75 73 65 72 5f 31 40 6c 6f 63 .grant.file.on.*.*.to.user_1@loc
0760 61 6c 68 6f 73 74 3b 0a 63 6f 6e 6e 65 63 74 20 20 63 6f 6e 32 38 31 38 31 5f 32 2c 6c 6f 63 61 alhost;.connect..con28181_2,loca
0780 6c 68 6f 73 74 2c 75 73 65 72 5f 31 2c 2c 6d 79 73 71 6c 74 65 73 74 3b 0a 73 65 6c 65 63 74 20 lhost,user_1,,mysqltest;.select.
07a0 73 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 2e 2e 2f schema_name.into.outfile."../../
07c0 74 6d 70 2f 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 tmp/outfile-test.4".fields.termi
07e0 6e 61 74 65 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 nated.by.','.optionally.enclosed
0800 20 62 79 20 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 .by.'"'..lines.terminated.by.'\n
0820 27 0a 66 72 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 '.from.information_schema.schema
0840 74 61 0a 77 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 ta.where.schema_name.like.'mysql
0860 74 65 73 74 27 3b 0a 63 6f 6e 6e 65 63 74 69 6f 6e 20 64 65 66 61 75 6c 74 3b 0a 64 69 73 63 6f test';.connection.default;.disco
0880 6e 6e 65 63 74 20 63 6f 6e 32 38 31 38 31 5f 32 3b 0a 75 73 65 20 74 65 73 74 3b 0a 72 65 76 6f nnect.con28181_2;.use.test;.revo
08a0 6b 65 20 61 6c 6c 20 70 72 69 76 69 6c 65 67 65 73 20 6f 6e 20 2a 2e 2a 20 66 72 6f 6d 20 75 73 ke.all.privileges.on.*.*.from.us
08c0 65 72 5f 31 40 6c 6f 63 61 6c 68 6f 73 74 3b 0a 64 72 6f 70 20 75 73 65 72 20 75 73 65 72 5f 31 er_1@localhost;.drop.user.user_1
08e0 40 6c 6f 63 61 6c 68 6f 73 74 3b 0a 64 72 6f 70 20 64 61 74 61 62 61 73 65 20 6d 79 73 71 6c 74 @localhost;.drop.database.mysqlt
0900 65 73 74 3b 0a est;.