Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Load Data Infile won't run under 8.0.17 (no replies)

$
0
0
I recently upgraded from 5.7 to 8.0.17.
Now, the following command won't run:

LOAD DATA LOCAL INFILE 'e:\\Data\\SBEC\\TEA IDs\\Master_IDs 09152016.csv' Ignore into table epp.sbec_id_Loader FIELDS TERMINATED BY ',' ENCLOSED by '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES;

I get error code 1148: the used command is not allowed with this MySQL version. It seems to be the LOCAL part of the command.

Ref Manual (https://dev.mysql.com/doc/refman/8.0/en/load-data.html) shows this is valid syntax. See below

What gives? Documentation error? Bug?


LOAD DATA
[LOW_PRIORITY | CONCURRENT] [LOCAL]
INFILE 'file_name'
[REPLACE | IGNORE]
INTO TABLE tbl_name
[PARTITION (partition_name [, partition_name] ...)]
[CHARACTER SET charset_name]
[{FIELDS | COLUMNS}
[TERMINATED BY 'string']
[[OPTIONALLY] ENCLOSED BY 'char']
[ESCAPED BY 'char']
]
[LINES
[STARTING BY 'string']
[TERMINATED BY 'string']
]
[IGNORE number {LINES | ROWS}]
[(col_name_or_user_var
[, col_name_or_user_var] ...)]
[SET col_name={expr | DEFAULT},
[, col_name={expr | DEFAULT}] ...]

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>