mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
8299f88228
Rewrite queries to not use the deprecated syntax and avoid warnings.
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
CREATE TABLE t1 (c1 longtext);
|
|
INSERT INTO t1 values ('a');
|
|
SELECT * INTO OUTFILE 'MYSQL_TMP_DIR/B11764517.tmp' FROM t1;
|
|
show global variables like 'secure_file_priv';
|
|
Variable_name Value
|
|
secure_file_priv MYSQL_TMP_DIR/
|
|
SELECT load_file('MYSQL_TMP_DIR\\B11764517.tmp') AS x;
|
|
x
|
|
a
|
|
|
|
SELECT load_file('MYSQL_TMP_DIR/B11764517.tmp') AS x;
|
|
x
|
|
a
|
|
|
|
SELECT load_file('MYSQL_TMP_DIR_UCASE/B11764517.tmp') AS x;
|
|
x
|
|
a
|
|
|
|
SELECT load_file('MYSQL_TMP_DIR_LCASE/B11764517.tmp') AS x;
|
|
x
|
|
a
|
|
|
|
SELECT load_file('MYSQL_TMP_DIR\\..a..\\..\\..\\B11764517.tmp') AS x;
|
|
x
|
|
NULL
|
|
LOAD DATA INFILE 'MYSQL_TMP_DIR\\B11764517.tmp' INTO TABLE t1;
|
|
LOAD DATA INFILE 'MYSQL_TMP_DIR/B11764517.tmp' INTO TABLE t1;
|
|
LOAD DATA INFILE 'MYSQL_TMP_DIR_UCASE/B11764517.tmp' INTO TABLE t1;
|
|
LOAD DATA INFILE 'MYSQL_TMP_DIR_LCASE/B11764517.tmp' INTO TABLE t1;
|
|
LOAD DATA INFILE "MYSQL_TMP_DIR\\..a..\\..\\..\\B11764517.tmp" into table t1;
|
|
ERROR HY000: The MariaDB server is running with the --secure-file-priv option so it cannot execute this statement
|
|
SELECT * INTO OUTFILE 'MYSQL_TMP_DIR\\..a..\\..\\..\\B11764517-2.tmp' FROM t1;
|
|
ERROR HY000: The MariaDB server is running with the --secure-file-priv option so it cannot execute this statement
|
|
SELECT * INTO OUTFILE 'MYSQL_TMP_DIR\\B11764517-2.tmp' FROM t1;
|
|
SELECT * INTO OUTFILE 'MYSQL_TMP_DIR/B11764517-3.tmp' FROM t1;
|
|
SELECT * INTO OUTFILE 'MYSQL_TMP_DIR_UCASE/B11764517-4.tmp' FROM t1;
|
|
SELECT * INTO OUTFILE 'MYSQL_TMP_DIR_LCASE/B11764517-5.tmp' FROM t1;
|
|
DROP TABLE t1;
|